News for hackers. Stuff that matters.
Re:An Introduction to Polymer - A Web Component Library by timeu on Tuesday December 13, 2016 @04:55AM (#13165718)
You can check out 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-7c...

Re:An Introduction to Polymer - A Web Component Library by sravan_ess on Tuesday December 13, 2016 @08:38PM (#13173084)
Thanks for the link. Still the presentational components have to be 2-way binded, right?
Re:An Introduction to Polymer - A Web Component Library by timeu on Tuesday December 20, 2016 @05:07PM (#13224599)
yeah either 2-way binding or just firing events which are handled in the container components (2 way binding is actually implemented using events)