Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

createRoot react

import React from 'react';
import { createRoot }  from 'react-dom/client';

const App = ()=> <h1>App</h1>

const root = createRoot( document.getElementById("root") );
root.render( <App /> );
 
PREVIOUS NEXT
Tagged: #createRoot #react
ADD COMMENT
Topic
Name
6+9 =