11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import ReactDOM from "react-dom/client";
|
|
import React from "react";
|
|
|
|
import { navbar } from "./navbar";
|
|
|
|
export default function App(Root) {
|
|
const root = ReactDOM.createRoot(document.querySelector("root"));
|
|
root.render(<>{ navbar() } { Root() }</>);
|
|
return root;
|
|
}
|