Hacker News new | past | comments | ask | show | jobs | submit login

You can avoid flux longer by simply making a component which stores that shared state, passes it down via props to children, and along with some callback functions to update that state. It is almost exactly what is needed most times and it prevents a problem we’ve dug our selves into before which is making everything via the store because we didn’t want to pass so many props.




Why do so many people forget about context?


Because it was internal and undocumented for a while and was properly exposed as an API only a few releases ago.


It's not perfect. It's implicit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: