@t7/render
v0.0.17
Published
This React component conditionally renders its children.
Downloads
12
Readme
@t7/render
Installation
npm i @t7/render
Usage
// ================
// TRUTHY EXAMPLES.
// ================
<Render if={true}>
This renders.
</Render>
<Render if={somethingTruthy}>
This renders.
</Render>
// ===============
// FALSY EXAMPLES.
// ===============
<Render if={false}>
This does not render.
</Render>
<Render if={0 || '' || NaN || null || undefined}>
This does not render.
</Render>