Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ship babel-plugin-react-docgen with storybook #540

Closed
arunoda opened this issue Oct 10, 2016 · 0 comments
Closed

Ship babel-plugin-react-docgen with storybook #540

arunoda opened this issue Oct 10, 2016 · 0 comments

Comments

@arunoda
Copy link
Member

arunoda commented Oct 10, 2016

The repo: https://github.com/kadirahq/babel-plugin-react-docgen

With this, we could get more meta data information about React classes in runtime.
For an example, you could get more info any React class with:

import MyButton from '../components/button';
console.log(MyButton.__docgenInfo)

This will help us to build a huge set of storybook addon which improve the dev workflow.

Performance Cost

This might carry some performance cost since it parses classes with react-docgen.
But we only do this only for files with React classes. We also utilize babel caching dir.
So with all, this won't be adding much overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants