ReactPropTypes

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand Rider
Feb 01, 2018
6 916
Auto Generate code for React's Component PropTypes (ES5 is not supported for the time being)
Usage Instructions:
1. Select or take the cursor in your Component's name
2. Press command + N (Windows is alt + insert) show Generate Group and select PropTypesGenerate, or press shift + command + alt + P (Windows is shift + ctrl + alt + P) in the macOS
3. Edit the PropTypes Table to modify default type
If you have any question or want to see more detail introductions, you can jump to Github.

Download plugin

Recent change notes

1.Delete the describe about props's source
2.Support PropTypes.shape
3.Support generate defaultProps
More info you can jump to github

General usage instructions

1.Select your Component's name

2.Press command + N (Windows is alt + insert) show Generate Group and select PropTypesGenerate, or press shift + command + alt + P (Windows is shift + ctrl + alt + P) in the macOS

3.Edit the PropTypes Table to modify default type