2.4.0
-
Generate globally unique common names for unnamed components, instead of falling back to "Component".
Unnamed components are now rendered as
<UnnamedComponent0>
, where0
is an internal ID. Two identical components (referentially equal) will render with the same name, useful for testing unnamed components. -
Don't assume
Function.prototype
exists (it doesn't for ES2015 arrow functions) -
Add a
renderRootComponent:false
option, which skips rendering for components located at the root of the given JSX tree.Example:
render(<Foo>a</Foo>) === '<Foo>a</Foo>'