Skip to content

Conversation

whoisryosuke
Copy link
Contributor

Can't apply proptypes outside of a class/function without using a named function.

This change defines the component function by the filename, and exports it separately (since directly exported const aren't supported).

Can't apply proptypes outside of a class/function without using a named function. 

This change defines the component function by the filename, and exports it separately (since directly exported const aren't supported).
@ice-chillios
Copy link
Member

Good point, but probably should also contain this before export. What do you think? :)

${1:${TM_FILENAME_BASE}}.propTypes = {}

@whoisryosuke
Copy link
Contributor Author

@dsznajder I think the code already includes what you were asking for.

@ice-chillios ice-chillios merged commit 02846af into r5n-labs:master Aug 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants