blob: 369a9a7105ffa7763257f46aa8aa51a25610f042 (
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
|
import ReactDOM from "react-dom";
import { Button } from "./components/button";
import * as Bootstrap from "react-bootstrap";
import * as leftPad from "left-pad";
import { DatePicker } from "antd";
const Base = ({}) => {
Bootstrap.Accordion;
return (
<main>
<h1>I am the page</h1>
<h3 className="bacon">Here is some text</h3>
<>Fragmen!t</>
<DatePicker />
<Button
label="Do not click."
onClick={() => alert("I told u not to click!")}
></Button>
</main>
);
};
function startReact() {
ReactDOM.render(<Base />, document.querySelector("#reactroot"));
}
globalThis.addEventListener("DOMContentLoaded", () => {
startReact();
});
|