react-announce-hydrate
Dispatches component lifecycle events to an observer. The same can also be done via @asStream but it require the use of getComponentStream()
method. The @hydrate
decorator helps us achieve this using a purely declarative approach.
Install
npm i react-announce-hydrate --save
Example
const lifeCycleObserver = @ { return <div>Hello World!</div> } subject /** OUTPUT: WILL_MOUNT DID_MOUNT ...**/