Commit 0439804a authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Basic app works now

parent 14130dc3
......@@ -22,7 +22,6 @@
<div id="app" class="container-fluid"></div>
<div id="portal"></div>
<script src="dist/bundle.js"></script>
</body>
</html>
......@@ -7,7 +7,7 @@ import DOM.Simple.Console (log)
import DOM.Simple.Document (document)
import Effect (Effect)
import FFI.Simple ((...))
import Prelude (Unit)
import Prelude (Unit, ($))
import Memiescape.App (app)
import Memiescape.Main (render)
......
module Memiescape.App where
import Prelude (($), pure)
import Reactix as R
import Reactix.DOM.HTML as H
thisModule :: String
thisModule = "Memiescape.App"
app :: {} -> R.Element
app props = R.createElement appCpt props []
appCpt :: R.Component ()
appCpt = R.hooksComponent "app" cpt
where
cpt {} _ = do
pure $ H.div {} [ H.text "Hello world" ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment