MCPcopy Create free account
hub / github.com/reactjs/react-rails / getIntrinsicNamespace

Function getIntrinsicNamespace

lib/assets/react-source/development/react.js:6160–6171  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

6158 }; // Assumes there is no parent namespace.
6159
6160 function getIntrinsicNamespace(type) {
6161 switch (type) {
6162 case 'svg':
6163 return SVG_NAMESPACE;
6164
6165 case 'math':
6166 return MATH_NAMESPACE;
6167
6168 default:
6169 return HTML_NAMESPACE;
6170 }
6171 }
6172 function getChildNamespace(parentNamespace, type) {
6173 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
6174 // No (or default) parent namespace: potential entry point.

Callers 3

getChildNamespaceFunction · 0.70
createElementFunction · 0.70
diffHydratedPropertiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected