File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
2424import Prelude
2525
2626import Control.Monad.Eff.Uncurried (mkEffFn1)
27- import React.Basic (ReactComponent, reactComponent )
27+ import React.Basic (ReactComponent, react )
2828import React.Basic.DOM as R
2929
3030-- The props for the component
3131type ExampleProps =
3232 { label :: String
3333 }
3434
35- -- Create a component by passing a record to the `reactComponent ` function.
35+ -- Create a component by passing a record to the `react ` function.
3636-- The `render` function takes the props and current state, as well as a
3737-- state update callback, and produces a document.
3838example :: ReactComponent ExampleProps
39- example = reactComponent
39+ example = react
4040 { initialState: { counter: 0 }
4141 , receiveProps: \_ _ _ -> pure unit
4242 , render: \{ label } { counter } setState ->
You can’t perform that action at this time.
0 commit comments