UNPKG
react-mobile-detect
Version:
latest (0.1.23)
0.1.23
0.1.22
0.1.21
0.1.20
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
React Mobile Detect
github.com/zeing/react-mobile-detect
zeing/react-mobile-detect
react-mobile-detect
/
src
/
lib
/
components
/
BrowserView.js
9 lines
(6 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
React
from
"react"
;
import
{ isDesktop }
from
"react-device-detect"
;
const
BrowserView
= (
{ children }
) => {
return
isDesktop ?
<
React.Fragment
>
{children}
</
React.Fragment
>
:
null
; };
export
default
BrowserView
;