Skip to content

Commit

Permalink
refactor(dashboard): use React Hooks API for state management
Browse files Browse the repository at this point in the history
...and move all data to a single data provider.
  • Loading branch information
eysi09 committed Jan 25, 2019
1 parent cdcdb64 commit 588dd6c
Show file tree
Hide file tree
Showing 17 changed files with 523 additions and 387 deletions.
4 changes: 3 additions & 1 deletion dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ The app is structured into presentational components (`src/components`), contain

**Provider/consumer components:** These are re-usable components that contain "global" data that needs to be accessible by many (presentational) components in the tree. The provider/consumer pattern is a part of the new [React context API](https://reactjs.org/docs/context.html).

Maintaining this separation will make it easier to migrate to different state management patterns/tools as the app evolves.
Maintaining this separation will make it easier to migrate to different state management patterns/tools as the app evolves.

We also use the new [React Hooks API](https://reactjs.org/docs/hooks-intro.html) to manage data and state.
Loading

0 comments on commit 588dd6c

Please sign in to comment.