https://github.com/vikbert/react-pattern
React Desgin Pattern with Demos
https://github.com/vikbert/react-pattern
Last synced: 9 months ago
JSON representation
React Desgin Pattern with Demos
- Host: GitHub
- URL: https://github.com/vikbert/react-pattern
- Owner: vikbert
- Created: 2019-08-14T20:35:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:57:30.000Z (about 3 years ago)
- Last Synced: 2025-06-03T15:26:34.630Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.45 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Design Pattern
## 01: Render Props
Resource for further reading:
## 02: HOC
A higher-order component is actually not a component though, it is a function. A HOC function
takes a component as an argument and returns a enhanced component. It transforms a component into another
component and adds additional data or functionality.
## Getting Start
```
yarn install
```
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
### `yarn test`
Launches the test runner in the interactive watch mode.
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn run build`