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

Support for PropTypes #1

Open
mmircea16 opened this issue Feb 22, 2018 · 0 comments
Open

Support for PropTypes #1

mmircea16 opened this issue Feb 22, 2018 · 0 comments

Comments

@mmircea16
Copy link
Owner

(Moved from stateless-jsx-loader repo)

Would be great if it's possible to define the PropTypes inside the html.jsx. This'll greatly improve readability of the file, as otherwise there is no way to know what kind of props can be used.

Maybe have a convention to put the PropTypes defintion on top of the file in a comment. Similar to what others are doing, e.g. in Java has comments with Annotations in them. Maybe something similar to this

(From a suggestion of @sroidl - thank you!)

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

1 participant