Skip to content

Commit

Permalink
Merge pull request #478 from garden-io/dashboard-hooks
Browse files Browse the repository at this point in the history
refactor(dashboard): use React Hooks API for state management
  • Loading branch information
eysi09 committed Jan 25, 2019
2 parents cdcdb64 + 588dd6c commit 59c8799
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 59c8799

Please sign in to comment.