styleguidist/react-styleguidist

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

Open

#1,271 创建于 2019年2月8日

在 GitHub 查看
 (3 评论) (2 反应) (0 负责人)TypeScript (1,416 fork)github user discovery
help wanted

仓库指标

Star
 (11,091 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南