-
-
Notifications
You must be signed in to change notification settings - Fork 237
/
index.tsx
54 lines (50 loc) · 1.46 KB
/
index.tsx
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import Area from "./components/Area";
import Band from "./components/Band";
import Bar from "./components/Bar";
import Bubble from "./components/Bubble";
import CustomStyles from "./components/CustomStyles";
import DarkMode from "./components/DarkMode";
import DynamicContainer from "./components/DynamicContainer";
import GroupingModes from "./components/GroupingModes";
import Line from "./components/Line";
import MultipleAxes from "./components/MultipleAxes";
import Steam from "./components/Steam";
import BarHorizontal from "./components/BarHorizontal";
import "./styles.css";
import useLagRadar from "./useLagRadar";
import React from "react";
import ReactDOM from "react-dom";
const components = [
["Line", Line],
["Bar", Bar],
["Bar (Horizontal)", BarHorizontal],
["Band", Band],
["Area", Area],
["Bubble", Bubble],
["Steam", Steam],
["Multiple Axes", MultipleAxes],
["Grouping Modes", GroupingModes],
["Dark Mode", DarkMode],
["Dynamic / Overflow Container", DynamicContainer],
["Custom Styles", CustomStyles],
];
export default function App() {
useLagRadar();
return (
<div>
{components.map(([label, Comp]) => {
return (
<div key={label + ""}>
<h1>{label}</h1>
<div>
<Comp />
</div>
</div>
);
})}
<div style={{ height: "50rem" }} />
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);