react-docgen
react-docgen copied to clipboard
A CLI and library to extract information from React component files for documentation generation purposes.
Getting an error while creating a component library : Warning: Cannot parse src/components/Inputs/Table/Table.js: Error: Plugin/Preset files are not allowed to export objects, only functions. Table.js : import React from 'react';...
```ts export const toArray = (arr?: any) => ([] as T[]).concat(arr); ``` Will break. It's due to the `as T[]`, maybe a similar issue as #410 ?
Hi, I try convert react-docgen props to JSON-schema. But in typescript and flow, we get different names by different ways to program.Just like this. This ```ReactReactNode``` makes me so confused....
I have this happening in a local project, but I was also able to reproduce it with a simple example in the playground. If you go to http://reactcommunity.org/react-docgen/ and paste...
Haven't been able to get the JSON output for any component. However, that's working on the Playground app. For instance: ```javascript import React, { Component } from 'react'; import PropTypes...
Hello, I am actually trying to make docs using react-styleguidist and react-docgen with javascript but the console is printing this Warning; ``` Warning: Cannot parse src/components/searchBar/SearchBar.jsx: TypeError: Cannot read property...
I using react-styleguidist. But fuctional component is can't parse. my code: ```jsx import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { sizeEnum } from '../../types/enum';...
" /** * */ " this can be regarded as a description. How about "//" ?
While generating react-doc for component, It generates props appropriately. but I did not provide comment to methods, still, it is showing the method array in JSON object. What's the way...
This is coming from https://github.com/styleguidist/react-styleguidist/issues/1508 Previously with `react-docgen-typescript`, third party component props are getting parsed and visible with the extended component. But with `react-docgen` v5, they are not getting listed.