This repository has been archived by the owner on Aug 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.bs.js
56 lines (48 loc) · 2 KB
/
App.bs.js
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
55
56
import * as Cn from "re-classnames/src/Cn.bs.js";
import * as Curry from "bs-platform/lib/es6/curry.js";
import * as React from "react";
import * as LogoSvg from "./logo.svg";
import './App.css'
;
var logo = LogoSvg.default;
function App(Props) {
var match = React.useState((function () {
return 0;
}));
var setCount = match[1];
var count = match[0];
console.log("Count JSON", count);
return React.createElement("div", {
className: "App"
}, React.createElement("header", {
className: "App-header"
}, React.createElement("img", {
className: "App-logo",
alt: "logo",
src: logo
}), React.createElement("p", undefined, "Hello Vite + Reason React"), React.createElement("p", undefined, React.createElement("button", {
className: Cn.make(/* :: */[
"App-button",
/* :: */[
Cn.ifTrue("App-button-active", count > 10),
/* [] */0
]
]),
onClick: (function (param) {
return Curry._1(setCount, (function (param) {
return count + 1 | 0;
}));
})
}, "count is: " + String(count))), React.createElement("p", undefined, "Edit ", React.createElement("code", undefined, "App.jsx "), "and save to test HMR updates."), React.createElement("a", {
className: "App-link",
href: "https://reasonml.github.io/reason-react/",
rel: "noopener noreferrer",
target: "_blank"
}, "Learn Reason React")));
}
var make = App;
export {
logo ,
make ,
}
/* Not a pure module */