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

https://github.com/rafgraph/react-component-dev

Minimal boilerplate for developing and demonstrating a React component
https://github.com/rafgraph/react-component-dev

Last synced: 24 days ago
JSON representation

Minimal boilerplate for developing and demonstrating a React component

Awesome Lists containing this project

README

          

# React Component Dev

[Demo website for SomeComponent](https://react-component-dev.rafgraph.dev)

Minimalistic boilerplate for creating a React component
- Component development in the `main` branch
- Example app that demonstrates the component in the `gh-pages` branch
- Clone the two branches into separate directories and link the component via `yarn link`
- Run `$ yarn run dev` in the `main` branch and `$ yarn run start-local` in the `gh-pages` branch
- When done, unlink the component - run `$ yarn unlink` in the `main` branch and `$ yarn run unlink` in the `gh-pages` branch
- Replace instances of `some-component` with the new component's name in `package.json` and `webpack.config.js`