Redux – avoid to pass props down component tree manually – 1. Pass the store down
In the basic example you can see props are passed down the compoent tree manually at every level. It’s very anoying. A simple way to avoid this is to pass Redux store down at every level. It will simplify the code to some extent function render(){ ReactDOM.render( <AppComponent appName=”React Demo Site” store={rootStore}/>, document.getElementById(‘root’)); } class …
Redux – avoid to pass props down component tree manually – 1. Pass the store down Read More »