-
Notifications
You must be signed in to change notification settings - Fork 47.6k
New issue
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
Update typechecking-with-proptypes.md #10153
Conversation
improved grammar
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 protected]. Thanks! |
@@ -8,7 +8,7 @@ redirect_from: | |||
|
|||
> Note: | |||
> | |||
> `React.PropTypes` has moved into a different package since React v15.5. Please use [the `prop-types` library instead](https://www.npmjs.com/package/prop-types). | |||
> `React.PropTypes` was moved into a different package on React v15.5. Please use [the `prop-types` library instead](https://www.npmjs.com/package/prop-types). |
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.
Nit: what about as of
instead of on
?
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.
Sorry. For a second there I was imagining "React v15.5" was a date. So, for example, "React.PropTypes" was moved into a different package on Dec, 13 2016" would have been correct.
Looking at it again, I think we could incorporate your as of
and say React.PropTypes is in a different package as of React v15.5
or as of React v15.5, React.PropTypes is in a different package
or even since React v15.5, React.PropTypes is in a different package.
But 'has moved' and 'since' don't work together unless it has been moving to the new package this entire time.
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.
I like how "React.PropTypes
was moved into a different package as of React v15.5" reads. But I don't have much preference.
What about something like:
This way it's clear that it's a standalone implementation and not just being moved into some other package ("different package") |
@aweary I can get behind that, 👍 |
works for me :) |
I can close the pull request, right? |
@rscharfer If you want to go with "React.PropTypes was extracted into it a standalone package in the React v15.5 release.", I'd be happy to merge that. |
Thank you for filing this PR! I'm sorry to be the bearer of bad news, but the documentation and source code for reactjs.org now lives in a different repository: reactjs/reactjs.org. (For more info on why we made this move, see issue #11075.) Would you be willing to re-open this PR on the new repo? I promise we'll review it quickly! |
improved grammar
Before submitting a pull request, please make sure the following is done:
master
.npm test
).npm run prettier
).npm run lint
).npm run flow
)../scripts/fiber/record-tests
before submitting the pull request, and commit the resulting changes.