-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.re
32 lines (32 loc) · 842 Bytes
/
App.re
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
[@react.component]
let make = () => {
<div>
<UniversalPortal_Shared.Portal selector="body">
<div
style={ReactDOM.Style.make(
~position="absolute",
~top="0",
~left="0",
~width="100%",
~backgroundColor="rgba(0, 0, 0, 0.3)",
~height="100%",
~display="flex",
~justifyContent="center",
~alignItems="center",
(),
)}>
<div
style={ReactDOM.Style.make(
~backgroundColor="white",
~padding="30px",
~width="200px",
~height="200px",
(),
)}>
{"Hey, I'm a portal, disable JS on your dev tools and check that I'll still here"
|> React.string}
</div>
</div>
</UniversalPortal_Shared.Portal>
</div>;
};