ihsan-project / ihsan-react

Apache License 2.0
1 stars 0 forks source link

Setup app hydrate context and hooks #2

Open mmislam101 opened 3 years ago

mmislam101 commented 3 years ago

The app will need a few global states and actions that we need to reproduce using react context and hooks:

mmislam101 commented 3 years ago

https://blog.logrocket.com/use-hooks-and-context-not-react-and-redux/ https://medium.com/trabe/react-usereducer-hook-2b1331bb768

mmislam101 commented 3 years ago

Per comments on: https://github.com/ihsan-project/ihsan-react/pull/17 Try to use: https://codeburst.io/beginner-guide-to-react-context-api-with-hook-usestate-4df7c3e08ad to switch from using useReducer instead to individual contexts and wrap the high level component for that context provider only

Taking care of this in: https://github.com/ihsan-project/ihsan-react/issues/19