Skip to content

Conversation

@maggielove
Copy link
Contributor

@maggielove maggielove commented Oct 31, 2017

Fixes #1443

@maggielove
Copy link
Contributor Author

cc @ljharb

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is great!

Let's also suggest using https://npmjs.com/prop-types-exact on Component propTypes whenever possible as well, to help prevent bugs sooner :-)

react/README.md Outdated
```

- Use spread props sparingly.
> Why? Otherwise you're more likely to pass unnecessary props down to components. And for React 15 and older, you could [pass invalid HTML attributes to the DOM](https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's React < 15.2 or 15.3? Let's be specific here :-)

@maggielove maggielove force-pushed the spread-props branch 2 times, most recently from e7b04b3 to 99076f5 Compare November 1, 2017 13:26
@maggielove
Copy link
Contributor Author

Thanks @ljharb ! This is ready for re-review. :) I'm not sure why the Travis build is failing--looking into it.

@ljharb
Copy link
Collaborator

ljharb commented Nov 1, 2017

Tests will now pass once this is rebased on master.

@maggielove
Copy link
Contributor Author

@ljharb Whenever you get a chance, I made your suggested changes. What do you think -- does it need more edits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants