react-docgen
react-docgen copied to clipboard
A CLI and library to extract information from React component files for documentation generation purposes.
Hi, wondered if it is possible to parse the jsx and obtain all Tag names (maybe exclude native tags) to form the dependency list for the component. Cheers :)
Is there a reason this wasn’t already included? Having a displayName with each description would be beneficial for tools that are using docgen without having to re-read the js file...
I defined a propType like this: ``` type: PropTypes.oneOf(['cute', 'aggressive', 'shy']), ``` This resulted in: ``` { computed: false, value: "'shy'", } ``` ...
This is more of a "would you be willing to accept a pull request which does this?" question than an issue of sorts. :) I would really like to extend...
Imagine you have a component `A` that composes component `B` and therefore also accepts the same props as `B`. For example: ``` js var A = React.createClass({ propTypes: ..., render:...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [nx](https://nx.dev) ([source](https://redirect.github.com/nrwl/nx/tree/HEAD/packages/nx)) | [`18.3.5` -> `20.0.6`](https://renovatebot.com/diffs/npm/nx/18.3.5/20.0.6) | [](https://docs.renovatebot.com/merge-confidence/) |...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@headlessui/react](https://redirect.github.com/tailwindlabs/headlessui) ([source](https://redirect.github.com/tailwindlabs/headlessui/tree/HEAD/packages/@headlessui-react)) | [`1.7.19` -> `2.2.0`](https://renovatebot.com/diffs/npm/@headlessui%2freact/1.7.19/2.2.0) | [](https://docs.renovatebot.com/merge-confidence/) |...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pnpm](https://pnpm.io) ([source](https://redirect.github.com/pnpm/pnpm)) | [`8.15.9` -> `9.12.2`](https://renovatebot.com/diffs/npm/pnpm/8.15.9/9.12.2) | [](https://docs.renovatebot.com/merge-confidence/) |...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint](https://eslint.org) ([source](https://redirect.github.com/eslint/eslint)) | [`8.57.1` -> `9.13.0`](https://renovatebot.com/diffs/npm/eslint/8.57.1/9.13.0) | [](https://docs.renovatebot.com/merge-confidence/) |...