A food ordering application built with react.js.
View Demo
·
Report Bug
·
Request Feature
Table of Contents
React Food Ordering 展示 React.js 中除了
Built With
|
- Define defaultState
- Define reducer (control center that tweaks states by actions)
- Instantiate
useReducer
- Dispatch actions
- Define Context blueprint (states and methods interface)
- Define Context Provider (with state and methods instances)
- Wrap parent component with ContextProvider
useContext
in child components
- Define internal states and functions
- We wrap functions with
useCallback
to make it easier to use inuseEffect
- We wrap functions with
- Export states and functions we want to reuse
- Import
useHttp
and utilize states and functions
Distributed under the MIT License. See LICENSE for more information.
Reach out to the maintainer at one of the following places:
- GitHub discussions
- The email which is located in GitHub profile