Skip to content

Commit bfa3f21

Browse files
committed
README: fix code sample
1 parent d312d0f commit bfa3f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Main where
99
import React
1010
import qualified React.DOM as DOM
1111

12-
hello = mkUI do
12+
hello = mkUI spec do
1313
props <- getProps
1414
return $ DOM.h1 {
1515
className: "Hello"
@@ -22,7 +22,7 @@ incrementCounter = do
2222
val <- readState
2323
writeState (val + 1)
2424

25-
counter = mkStatefulUI 0 do
25+
counter = mkUI spec { getInitialState = return 0 } do
2626
val <- readState
2727
return $ DOM.p {
2828
className: "Counter",

0 commit comments

Comments
 (0)