Skip to content

Commit

Permalink
Change call to reactComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Vincent Liwanag authored and Jan Vincent Liwanag committed Mar 31, 2021
1 parent 27b59cf commit 8cac405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/basic/src/Basic.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Prelude
import Effect (Effect)
import React.Basic.DOM as R
import React.Basic.Emotion as E
import React.Basic.Hooks (JSX, ReactComponent, component, element, fragment)
import React.Basic.Hooks (JSX, ReactComponent, element, fragment, reactComponent)

data Size
= S
Expand Down Expand Up @@ -61,7 +61,7 @@ slatDefaults =
mkSlat :: Effect (ReactComponent SlatProps)
mkSlat = do
box <- mkBox
component "Slat" \props ->
reactComponent "Slat" \props ->
pure
$ E.element
box
Expand All @@ -79,7 +79,7 @@ mkSlat = do
mkEx :: Effect (ReactComponent {})
mkEx = do
slat <- mkSlat
component "BasicEx" \props -> React.do
reactComponent "BasicEx" \props -> React.do
pure
$ fragment
[ element slat
Expand Down Expand Up @@ -123,7 +123,7 @@ boxStyle =

mkBox :: Effect (ReactComponent BoxProps)
mkBox = do
component "Box" \props ->
reactComponent "Box" \props ->
pure
$ E.element R.div'
{ className: props.className
Expand Down

0 comments on commit 8cac405

Please sign in to comment.