May 2017
Intermediate to advanced
388 pages
7h 30m
English
Add links to different pages on NavBar and see how the component unsubscribes as soon as it is unmounted. You can also assign static methods of the HOC component and have it call them to the generated one:
Observe.dataChanged = Component.dataChanged;
Observe.dataChanged({ props: self.props, data: { type: 'REMOVED', result: [], id: id }})
In the App component, we declared it as:
static dataChanged(params) { //dispatch actions }
Read now
Unlock full access