Skip to content

Commit 8cac405

Browse files
Jan Vincent LiwanagJan Vincent Liwanag
Jan Vincent Liwanag
authored and
Jan Vincent Liwanag
committed
Change call to reactComponent
1 parent 27b59cf commit 8cac405

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/basic/src/Basic.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Prelude
44
import Effect (Effect)
55
import React.Basic.DOM as R
66
import React.Basic.Emotion as E
7-
import React.Basic.Hooks (JSX, ReactComponent, component, element, fragment)
7+
import React.Basic.Hooks (JSX, ReactComponent, element, fragment, reactComponent)
88

99
data Size
1010
= S
@@ -61,7 +61,7 @@ slatDefaults =
6161
mkSlat :: Effect (ReactComponent SlatProps)
6262
mkSlat = do
6363
box <- mkBox
64-
component "Slat" \props ->
64+
reactComponent "Slat" \props ->
6565
pure
6666
$ E.element
6767
box
@@ -79,7 +79,7 @@ mkSlat = do
7979
mkEx :: Effect (ReactComponent {})
8080
mkEx = do
8181
slat <- mkSlat
82-
component "BasicEx" \props -> React.do
82+
reactComponent "BasicEx" \props -> React.do
8383
pure
8484
$ fragment
8585
[ element slat
@@ -123,7 +123,7 @@ boxStyle =
123123

124124
mkBox :: Effect (ReactComponent BoxProps)
125125
mkBox = do
126-
component "Box" \props ->
126+
reactComponent "Box" \props ->
127127
pure
128128
$ E.element R.div'
129129
{ className: props.className

0 commit comments

Comments
 (0)