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

storybook ts 환경에서 prop 제대로 노출 안되는 이슈 #7

Open
Brew-Brew opened this issue Apr 22, 2020 · 0 comments
Open

Comments

@Brew-Brew
Copy link
Owner

https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#react-prop-tables-with-typescript
reactjs/react-docgen#387

// 작동 안하는 버전
import React, { FC } from 'react';
interface IProps { ... };
const MyComponent: FC<IProps> = ({ ... }) => ...


//작동하는 버전
const MyComponent: FC<IProps> = ({ ... }: IProps) => ...
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

1 participant