UNPKG
control-flow-react
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Control flow components for React
github.com/manu2699/react-control-flow
manu2699/react-control-flow
control-flow-react
/
dist
/
esm
/
show.js
6 lines
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
import
React
from
"react"
;
export
var
Show
=
function
(
_a
) {
var
when = _a.
when
, children = _a.
children
, _b = _a.
fallBack
, fallBack = _b ===
void
0
?
null
: _b;
return
React
.
createElement
(
React
.
Fragment
,
null
, when ? children : fallBack); };
//# sourceMappingURL=show.js.map