Browse Source

Merge pull request #3518 from alopatin/patch-1

Docs: Clarify that React.PropTypes.node accepts fragments
main
Ben Alpert 10 years ago
parent
commit
524806a3e5
  1. 2
      docs/05-reusable-components.md

2
docs/05-reusable-components.md

@ -26,7 +26,7 @@ React.createClass({
optionalString: React.PropTypes.string,
// Anything that can be rendered: numbers, strings, elements or an array
// containing these types.
// (or fragment) containing these types.
optionalNode: React.PropTypes.node,
// A React element.

Loading…
Cancel
Save