squiggle/packages/playground/showcase/ShowcaseIndex.res
2022-02-06 14:48:21 -05:00

6 lines
164 B
Plaintext

switch(ReactDOM.querySelector("main")){
| Some(root) => ReactDOM.render(<div> <Lib.Index /> </div>, root)
| None => () // do nothing
}
RescriptReactRouter.push("")