React Top-Level API: React.createFactory()
React.createFactory()
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.