Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

docgen-loader

1.3.4 • Public • Published

react-docgen loader for webpack

Usage

var docs = require("!!docgen!./Component.jsx");
// => returns Component.jsx documentation object if Component definition is found

Markdown description

If the description is in markdown you can parse it with marked by adding a query

var docs = require("!!docgen?markdownDescription!./Component.jsx");

NOTE: I use double !! to disable all other loaders. react-docgen cannot gather Component information if the Component has been babeled

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Keywords

none

Install

npm i docgen-loader

DownloadsWeekly Downloads

339

Version

1.3.4

License

none

Last publish

Collaborators

  • avatar
  • avatar