W01fw00d / escaping_boredom

Prototype of a Reviews App (Escape Rooms)
https://escaping-boredom.herokuapp.com/
0 stars 0 forks source link

Use React.Context vs Redux library for application state #33

Open W01fw00d opened 4 years ago

W01fw00d commented 4 years ago

https://blog.logrocket.com/use-hooks-and-context-not-react-and-redux/ https://blog.axlight.com/posts/four-patterns-for-global-state-with-react-hooks-context-or-redux/ https://github.com/dai-shi/react-hooks-global-state

vs

https://www.simplethread.com/cant-replace-redux-with-hooks/ https://medium.com/javascript-scene/do-react-hooks-replace-redux-210bab340672

W01fw00d commented 4 years ago

Probably for this Example Apps purpouses, would be enough with the useReducer hook + the Context API vs Redux; we could avoid adding a new big dependency and a very complex new abstract layer.

W01fw00d commented 4 years ago

Further reading: https://alligator.io/react/usereducer/ ; https://medium.com/javascript-scene/10-tips-for-better-redux-architecture-69250425af44