UNPKG
create-bhvr
Version:
latest (0.6.4)
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.6
0.5.6-alpha.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.12
0.3.11
0.3.10
0.3.9
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Create a new bhvr project
create-bhvr
/
dist
/
templates
/
extras
/
client
/
src
/
components
/
ClientOnly.tsx
/
ClientOnly.d.ts
7 lines
(6 loc)
•
241 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
type
PropsWithChildren
,
type
ReactNode
}
from
"react"
;
type
ClientOnlyProps
=
PropsWithChildren
& {
fallback
?:
ReactNode
; };
declare
const
ClientOnly
:
(
{ children, fallback }:
ClientOnlyProps
) =>
any
;
export
default
ClientOnly
;