Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react 18 createroot

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

const root = createRoot(document.getElementById("root"))
root.render
  (
    <App />
  )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #createroot
ADD COMMENT
Topic
Name
1+4 =