MCPcopy Index your code
hub / github.com/react/react / createContainer

Function createContainer

fixtures/attribute-behavior/src/App.js:254–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 const tagName = attribute.tagName || 'div';
253
254 function createContainer() {
255 if (containerTagName === 'svg') {
256 return document.createElementNS('http://www.w3.org/2000/svg', 'svg');
257 } else if (containerTagName === 'document') {
258 return document.implementation.createHTMLDocument('');
259 } else if (containerTagName === 'head') {
260 return document.implementation.createHTMLDocument('').head;
261 } else {
262 return document.createElement(containerTagName);
263 }
264 }
265
266 const read = attribute.read;
267 let testValue = type.testValue;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected