React Top-Level API: React.createFactory()

React.createFactory()

React.createFactory(type)

Return a function that produces React elements of a given type.

Like React.createElement(), the type argument can be either a tag name string (such as 'div' or 'span'), a React component type (a class or a function), or a React fragment type.

React Top-Level API: React.createFactory() — Structure map

Clickable & Draggable!

React Top-Level API: React.createFactory() — Related pages: