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

Only working with default export #633

Closed
hwaterke opened this issue Oct 11, 2017 · 1 comment
Closed

Only working with default export #633

hwaterke opened this issue Oct 11, 2017 · 1 comment

Comments

@hwaterke
Copy link

I don't like default export and always write my components with named exports.

But then the only way to make Markdown examples work is to write the following:

const Title = require('./Title').Title;
<Title>Helloo</Title>

Any better way to handle named exports and avoid this require in all my examples?

@sapegin
Copy link
Member

sapegin commented Oct 11, 2017

Any better way to handle named exports and avoid this require in all my examples?

Yes, use default exports.

@sapegin sapegin closed this as completed Oct 11, 2017
@styleguidist styleguidist locked and limited conversation to collaborators Oct 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants