This is an opinionated boilerplate that I use to create my own packages [1].
Feedback is appreciated.
22 karma · joined September 14, 2016
This is an opinionated boilerplate that I use to create my own packages [1].
Feedback is appreciated.
People start their projects with Redux without knowing if they'll actually need it.
[0] https://medium.freecodecamp.org/reacts-new-context-api-how-t...
Repo: https://github.com/diegohaz/constate
Demo: https://codesandbox.io/s/7p2qv6mmq
This is something I needed in another project of mine, so I decided to abstract it into a new package: constate.
The goal was to use it to start building a simple application in the most simplest way: using React local state.
Whenever I feel the need to scale up and use some sort of global state, instead of adding redux, mobx or another complex library, I can just add a context property and everything works.
Repo: https://github.com/diegohaz/constate
Demo: https://codesandbox.io/s/7p2qv6mmq
This is something I needed in another project of mine, so I decided to abstract it into a new package: constate.
The goal was to use it to start building a simple application in the most simplest way: using React local state.
Whenever I feel the need to scale up and use some sort of global state, instead of adding redux, mobx or another complex library, I can just add a context property and everything works.