We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
propTypes
in
import PropTypes from 'prop-types'; import React from 'react'; const propTypes={ children: PropTypes.node, className: PropTypes.string } function Example() { return <div />; } Example.propTypes = propTypes; export default Example;
out
import PropTypes from 'prop-types'; import React from 'react'; const propTypes = { children: PropTypes.node, className: PropTypes.string }; function Example() { return <div />; } Example.handledProps = []; Example.propTypes = propTypes; export default Example;
The text was updated successfully, but these errors were encountered:
https://github.com/simonguo/babel-plugin-transform-react-flow-handled-props/blob/6285a377f8c281d6ba56eae6812f581408187ee9/src/visitors/propVisitor.js#L67
Sorry, something went wrong.
It will be awesome to get PR that adds this functionality 👍 BTW, there is an easier way to get bindings 😸
@layershifter Thank you so much, I will take a closer look at the babel Document!
babel
No branches or pull requests
in
out
The text was updated successfully, but these errors were encountered: