Skip to content

2.4.0

Compare
Choose a tag to compare
@developit developit released this 14 Apr 02:07
· 559 commits to main since this release
  • Generate globally unique common names for unnamed components, instead of falling back to "Component".

    Unnamed components are now rendered as <UnnamedComponent0>, where 0 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>'