Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don’t use state, except within a component.

I build all my react this way.

No prop drilling, no Redux, no context, no mobx no state.

If you need to communicate between components then send a document event.

Your react application will be dramatically more simple without state.



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

Search: