Comments (5)
@Ifgen09 Because it's really hard to distinguish functional components, so i assert functional components must reuturn jsx markup, rather than return a new functional component or a function that return jsx markup。if you want so , i will provide a option in the plugin's setting to remove this assert, but I don't promise to make sure that this is one valid functional component 。
from reactproptypes-plugin.
@dpzxsm
sorry, what do you mean by ?
option in the plugin's setting to remove this assert
from reactproptypes-plugin.
@Ifgen09 Well, I mean it is easy to fixed it, bu I dont's like this way to support for functional components。If you want it, i will provide a option in Settting, like this:

from reactproptypes-plugin.
@dpzxsm
it would be very good. thanks
from reactproptypes-plugin.
In v1.1.3 , you can open the option to resolve it , like this.
from reactproptypes-plugin.
Related Issues (15)
- Auto-Detect "if you are using 'prop-types' model" HOT 3
- Improve the build documentation HOT 1
- PropTypes.exact is not fully supported HOT 1
- Does not work when component is wrapped with memo HOT 1
- PropTypesGenerate doesn't show up HOT 2
- proptypes popup is not opening up
- Didn'work HOT 4
- Update needed for compatibility with latest version HOT 1
- My component is not detected HOT 5
- Also handle defaultProp HOT 4
- Semi-colons not inserted with imports or propTypes block HOT 2
- In v1.0.9, can't manual added a PropTypes, the plugin will carash !!! HOT 1
- Add functionality for functional components HOT 4
- Support full list of propTypes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactproptypes-plugin.