styleguidist/react-styleguidist

Add support for babel-plugin-flow-react-proptypes

Open

#1.271 aberto em 8 de fev. de 2019

Ver no GitHub
 (3 comments) (2 reactions) (0 assignees)TypeScript (1.416 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (11.091 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

The problem

react-docgen isn't very reliable, and doesn't work at all with styled components.

Proposed solution

Allow to generate the documentation from React PropTypes autogenerated with babel-plugin-flow-react-proptypes starting from the Flow types.

Alternative solutions

Fix react-docgen, but it's not trivial.

Additional context

I think it's a low hanging fruit that will improve the quality of the generated documentation for Flow users. It may even be used as a fallback solution if react-docgen fails.

Guia do colaborador