Skip to content

Commit d42cf72

Browse files
committed
Update for new setup function
1 parent 28f1cba commit d42cf72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/counter/src/Counter.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type ExampleState =
2121
component :: R.ReactComponent ExampleProps
2222
component = R.react
2323
{ initialState: \_ -> { counter: 0 }
24+
, setup: \_ _ _ -> pure unit
2425
, render: \{ label } { counter } setState ->
2526
R.button { onClick: mkEffFn1 \_ -> do
2627
setState { counter: counter + 1 }

0 commit comments

Comments
 (0)