File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
generated-docs/React/Basic Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ text :: String -> JSX
1515
1616Create a text node.
1717
18+ #### ` empty `
19+
20+ ``` purescript
21+ empty :: JSX
22+ ```
23+
24+ An empty node. This is often useful when you would like to conditionally
25+ show something, but you don't want to (or can't) modify the ` children ` prop
26+ on the parent node.
27+
1828#### ` CSS `
1929
2030``` purescript
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ import Unsafe.Coerce (unsafeCoerce)
1515text :: String -> JSX
1616text = unsafeCoerce
1717
18+ -- | An empty node. This is often useful when you would like to conditionally
19+ -- | show something, but you don't want to (or can't) modify the `children` prop
20+ -- | on the parent node.
21+ empty :: JSX
22+ empty = unsafeCoerce false
23+
1824-- | An abstract type representing records of CSS attributes.
1925foreign import data CSS :: Type
2026
You can’t perform that action at this time.
0 commit comments