Can I use EventEmitter in react?

scene. EventEmitter is very suitable for component communication without modifying the component state structure . However, its life cycle is not managed by react, so it is troublesome to manually add / clean up listening events. Moreover, if an EventEmitter is not used, it will be a bit troublesome to be initialized.

Sizin İçin Seçtik  What is a event emitter?

Leave a Reply

Your email address will not be published. Required fields are marked *