Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Support React Hooks (#5602) #5997
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.
If you have received this in error or have any questions, please contact us at email@example.com. Thanks!
Sorry, I completely missed the first notification.
I'm not too knowledgeable with the babel plugins or AST but I imagine that you would have to create a custom babel plugin (based on the
Have a look at lvl99/babel@e2600c3 and let me know if it could be used here.
Edit: PR on babel available here: babel/babel#9486
referenced this pull request
Feb 10, 2019
Perhaps I need to rethink what exactly is happening or how we want to use it.
const isLoose = this.selectiveLoose ? checkNameMatchesSelectiveLoose(objRef.name, this.selectiveLoose)) : loose;
I think that would make more sense!
Edit: otherwise, if you set