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
15
15
16
16
Create a text node.
17
17
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
+
18
28
#### ` CSS `
19
29
20
30
``` purescript
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ import Unsafe.Coerce (unsafeCoerce)
15
15
text :: String -> JSX
16
16
text = unsafeCoerce
17
17
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
+
18
24
-- | An abstract type representing records of CSS attributes.
19
25
foreign import data CSS :: Type
20
26
You can’t perform that action at this time.
0 commit comments