12 lines
229 B
JavaScript
12 lines
229 B
JavaScript
|
import React from "react";
|
||
|
import {createRoot} from "react-dom/client";
|
||
|
|
||
|
const rootDom = document.createElement("div");
|
||
|
document.body.appendChild(rootDom);
|
||
|
|
||
|
const root = createRoot(rootDom);
|
||
|
|
||
|
root.render(<h1>
|
||
|
Merhaba
|
||
|
</h1>);
|