Simple Counter
Use state to create a simple counter component
Create CounterSink
Sink states maps dispatch automatically to the component. so you don't have to create action or reducer.
CounterSink.js
Use external state without dispatches
Counter.jsx
The two-way update for the state is based on defineProperty, so when updating object or array you still need to update the whole object reference. For example Object.assign or Array.contact
Last updated