-
Notifications
You must be signed in to change notification settings - Fork 209
fix(compat): improve react version detection #186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Two things:
- update the code to be
parseFloat
instead ofParseFloat
(my bad) - This is optional, but you can add yourself to the contributors table. Run
npm start contributors.add
Thanks!
@@ -3,7 +3,7 @@ import React from 'react' | |||
let PropTypes | |||
|
|||
/* istanbul ignore next */ | |||
if (React.version.slice(0, 4) === '15.5') { | |||
if (ParseFloat(React.version.slice(0, 4)) >= 15.5) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! This should be a lower-case p
. Sorry about that! So it should be:
if (parseFloat(React.version.slice(0, 4)) >= 15.5) {
Oh, and another bit of feedback, normally when making a pull request, you'll want to fill in the Pull Request description with something useful. Some open source projects (like this one) will even have a template for you to fill out. |
Hi @kentcdodds Could you help me about this issue? |
cc @vesparny (or anyone else), could you help @acgrdumlu? I'm afraid I don't have time (getting ready for family vacation!) |
Make sure you push to your fork, @acgrdumlu. Sounds like you may be attempting to push to |
This is now resolved with the merge of #189, right? |
Yep. Closing |
What:
Why:
How:
Checklist: