We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d312d0f commit bfa3f21Copy full SHA for bfa3f21
README.md
@@ -9,7 +9,7 @@ module Main where
9
import React
10
import qualified React.DOM as DOM
11
12
-hello = mkUI do
+hello = mkUI spec do
13
props <- getProps
14
return $ DOM.h1 {
15
className: "Hello"
@@ -22,7 +22,7 @@ incrementCounter = do
22
val <- readState
23
writeState (val + 1)
24
25
-counter = mkStatefulUI 0 do
+counter = mkUI spec { getInitialState = return 0 } do
26
27
return $ DOM.p {
28
className: "Counter",
0 commit comments