MCPcopy Create free account
hub / github.com/Lobos/react-ui / createDOMFactory

Function createDOMFactory

docs/lib/react.js:7627–7632  ·  view source on GitHub ↗

* Create a factory that creates HTML tag elements. * * @param {string} tag Tag name (e.g. `div`). * @private

(tag)

Source from the content-addressed store, hash-verified

7625 * @private
7626 */
7627function createDOMFactory(tag) {
7628 if ("development" !== 'production') {
7629 return ReactElementValidator.createFactory(tag);
7630 }
7631 return ReactElement.createFactory(tag);
7632}
7633
7634/**
7635 * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…