UNPKG
react-if-render
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
Conditional Rendering of React Components.
github.com/JunH-K/react-if-render.git
react-if-render
/
dist
/
components
/
Unless.d.ts
8 lines
(7 loc)
•
224 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
ReactNode
}
from
"react"
;
type
Props
= {
condition
:
boolean
;
children
?:
ReactNode
; };
declare
function
Unless
(
{ condition, children }:
Props
):
import
(
"react/jsx-runtime"
).
JSX
.
Element
;
export
default
Unless
;