-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathexample.js
More file actions
32 lines (28 loc) · 868 Bytes
/
example.js
File metadata and controls
32 lines (28 loc) · 868 Bytes
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
import React from "react";
import { render } from "react-dom";
import Checkbox from "./examples/checkbox";
import CheckActive from "./examples/checkActive";
import TimeInterval from "./examples/timeInterval";
import DisplayMap from "./examples/displayMap";
const changeFn = val => console.log(`It changed to ${val}`);
function App() {
return (
<div className="App">
<div className="section">
<div className="title">useToggle</div>
<Checkbox initialValue>Power - toggler</Checkbox>
</div>
<div className="section">
<div className="title">useActive</div>
<CheckActive onChange={changeFn} />
</div>
<div className="section">
<TimeInterval />
</div>
<div className="section">
<DisplayMap />
</div>
</div>
);
}
render(<App />, document.getElementById("root"));