Skip to content

Commit

Permalink
refactor: remove unnecessary judgment when check fragment props
Browse files Browse the repository at this point in the history
  • Loading branch information
gebilaoxiong committed Sep 7, 2018
1 parent 9a110eb commit 91a971b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ReactElementValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function validateFragmentProps(fragment) {
const keys = Object.keys(fragment.props);
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
if (key !== 'children' && key !== 'key') {
if (key !== 'children') {
warning(
false,
'Invalid prop `%s` supplied to `React.Fragment`. ' +
Expand Down

0 comments on commit 91a971b

Please sign in to comment.