An open API service indexing awesome lists of open source software.

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

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`