blob: db66d786bd5a77d0211e20e1c1d042576acc7fb0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import ReactDOM from "react-dom";
import React from "react";
import { Button } from "./components/button";
import classNames from "classnames";
const Base = ({}) => {
return (
<main className={classNames("main")}>
<h3 className={classNames("hi")}>Here is some text</h3>
<h3 className={classNames("extremely")}></h3>
<>
Fargment!1239899080909123123123123123poaksdpoaksdpopokasdpokasdpokaspodkapsodk
poaksdpok123123
</>
<Button
label="Do notencoding! cl1ick."
onClick={() => alert("I told u not to click!")}
></Button>
</main>
);
};
function startReact() {
ReactDOM.render(<Base />, document.querySelector("#reactroot"));
}
globalThis.addEventListener("DOMContentLoaded", () => {
startReact();
});
startReact();
export { Base };
|