সম্পাদনা
import {createRoot} from "react-dom/client"; import React, {useInsertionEffect} from "react"; function App() { useInsertionEffect(() => { const style = document.createElement("style"); style.textContent = ".title {color: red}"; document.head.appendChild(style); return () => style.remove(); }, []); return <h1 className="title">প্রোগ্রামিং শিখুন</h1>; } createRoot( document.getElementById("root") ).render(<App/>);
পূর্বরূপ