component-docs-2md

0.0.2 • Public • Published

< 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"
}

Readme

Keywords

none

Package Sidebar

Install

npm i component-docs-2md

Weekly Downloads

4

Version

0.0.2

License

none

Last publish

Collaborators

  • wordyallen