Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
9+7 =