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
- Host: GitHub
- URL: https://github.com/rafgraph/react-component-dev
- Owner: rafgraph
- License: mit
- Created: 2016-08-02T02:58:41.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2020-11-22T18:39:55.000Z (over 5 years ago)
- Last Synced: 2025-01-08T17:27:41.698Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://react-component-dev.rafgraph.dev
- Size: 124 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`