Can we 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.27 Oca 2021

Read more