squiggle/packages/playground/showcase/ShowcaseIndex.res

6 lines
164 B
Plaintext
Raw Normal View History

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