File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ module React.Basic.Example where
24
24
import Prelude
25
25
26
26
import Control.Monad.Eff.Uncurried (mkEffFn1)
27
- import React.Basic (ReactComponent, reactComponent )
27
+ import React.Basic (ReactComponent, react )
28
28
import React.Basic.DOM as R
29
29
30
30
-- The props for the component
31
31
type ExampleProps =
32
32
{ label :: String
33
33
}
34
34
35
- -- Create a component by passing a record to the `reactComponent ` function.
35
+ -- Create a component by passing a record to the `react ` function.
36
36
-- The `render` function takes the props and current state, as well as a
37
37
-- state update callback, and produces a document.
38
38
example :: ReactComponent ExampleProps
39
- example = reactComponent
39
+ example = react
40
40
{ initialState: { counter: 0 }
41
41
, receiveProps: \_ _ _ -> pure unit
42
42
, render: \{ label } { counter } setState ->
You can’t perform that action at this time.
0 commit comments