Skip to content

Commit 8e89c14

Browse files
committed
Fix readme
1 parent 6662afc commit 8e89c14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ module React.Basic.Example where
2424
import Prelude
2525
2626
import Control.Monad.Eff.Uncurried (mkEffFn1)
27-
import React.Basic (ReactComponent, reactComponent)
27+
import React.Basic (ReactComponent, react)
2828
import React.Basic.DOM as R
2929
3030
-- The props for the component
3131
type 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.
3838
example :: ReactComponent ExampleProps
39-
example = reactComponent
39+
example = react
4040
{ initialState: { counter: 0 }
4141
, receiveProps: \_ _ _ -> pure unit
4242
, render: \{ label } { counter } setState ->

0 commit comments

Comments
 (0)