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

Usage description #61

Open
kbarinova opened this issue Feb 4, 2022 · 1 comment
Open

Usage description #61

kbarinova opened this issue Feb 4, 2022 · 1 comment

Comments

@kbarinova
Copy link

Hi, I could not figure out how to use your plugin to add propTypes to my current Typescript React components.
I followed your current description, but could not see propTypes usage in my built code.
Could you provide more details how to do that? Thanks in advance!

@milesj
Copy link
Owner

milesj commented Feb 4, 2022

@kbarinova There's not much to do, just enable the plugin in your babel config: https://github.com/milesj/babel-plugin-typescript-to-proptypes#usage

And be sure that you're building with babel, not with tsc.

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

No branches or pull requests

2 participants