Skip to content

Template using react hooks for global state management.

Notifications You must be signed in to change notification settings

knoebelja/global-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Hooks - Global State Demo

This project was bootstrapped with Create React App. It uses React Hooks to implement a global store.

Scripts

In the project directory, you can run:

  • npm start runs the app in development mode on 3000.
  • npm test launches the test runner. There are currently no tests.
  • npm run build builds the app for production to the build folder.

Architecture

src

The entry point of the application.

file / directory description
App.js The component that provides a layout and navigation to the application.
store The store provides global state to the application. StoreProvider wraps the entire application, and useStore updates the provided key value of initialState.
hooks Each hook returns an object representing a stored value. The object contains the state of the store item and helper methods for updating state.
pages Pages are functional representations of one route's content.
components Components are functional representations of each HTML element rendered by the browser.

About

Template using react hooks for global state management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published