1module Example (main) where
5import Container.Component (mkContainer)
6import Data.Maybe (fromJust)
8import Effect.Console (log)
9import Partial.Unsafe (unsafePartial)
10import React.Basic (JSX, element)
11import React.Basic.DOM as ReactDOM
12import Theme (fromTheme)
13import Theme.Default (darkTheme)
14import Web.DOM.NonElementParentNode (getElementById) as DOM
15import Web.HTML (window) as DOM
16import Web.HTML.HTMLDocument (toNonElementParentNode) as DOM
17import Web.HTML.Window (document) as DOM
22 container <- mkContainer
23 let appEl = element container { theme: fromTheme darkTheme, children: [] }
26 then void (log (renderToString appEl))
29 document <- DOM.document window
30 let node = DOM.toNonElementParentNode document
31 elem <- DOM.getElementById "app" node
32 let element' = unsafePartial (fromJust elem)
33 ReactDOM.render appEl element'
35foreign import isServerSide ∷ Boolean
36foreign import renderToString ∷ JSX -> String
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list