0.0.2 • Published 6 years ago
component-docs-2md v0.0.2
< Component Docs to Markdown />
Using (react-docgen)[], this module creates docs for your react components folder according to this format:
<MyComponent1/>
General MyComponent1 description.
prop | type | description |
---|---|---|
foo | Number | Description of prop "foo". |
bar | Custom | Description of prop "bar" (a custom validation function). |
baz | Union | no description given |
Install
yarn add comoponent-docs-2md --dev
Usage
In package.json
"scripts":{
...
"genDocs": "component-docs-2md ./src/components"
}