- Create app: create-react-app s1. (OPTIONAL) Create directory for components. This makes it easy to tell the style guide what components to render to the style guide.
- npm install the node modules : npm install --save-dev react-styleguidist
- Make markdown files for all the components you are rendering to style guide (
js <APP NAME> 1
) - Create styleguide.config.js in the root of your project
- Add module exports code into style guide config: https://react-styleguidist.js.org/docs/components.html
- Run style guide server : npx styleguidist server
-
Notifications
You must be signed in to change notification settings - Fork 0
MKAVARTS/react-style-guide
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
How to create a React component style guide
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published