4 ms·
You can check out polymer-redux (https://github.com/tur-nr/polymer-redux https://github.com/tur-nr/polymer-redux). It's makes it easy to integrate the redux sto
by timeu 10y ago
You can check out polymer-redux (https://github.com/tur-nr/polymer-redux https://github.com/tur-nr/polymer-redux). It's makes it easy to integrate the redux store inside your components. Basically you will split up your components in two types: 1.) container components that are redux aware and subscribes to slices of your state graph and pure presentational components that are unaware of redux and are management by the container components.
This is similar to what is suggested in React/Redux. This way you can re-use your presentational components elsewhere.
Check also this guide: https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0#.a9y6idjta https://medium.com/@dan_abramov/smart-and-dumb-components-7c...
- sravan_ess 10y agoThanks for the link. Still the presentational components have to be 2-way binded, right?
- timeu 10y agoyeah either 2-way binding or just firing events which are handled in the container components (2 way binding is actually implemented using events)