Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

render react component

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

const container = document.getElementById('root');
const root = createRoot(container);

root.render(<App />);
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #render #react #component
ADD COMMENT
Topic
Name
4+2 =