屏幕React方向
安装
npm install react-screen-orientation --save
用法
另请参见。
@import " ~react-screen-orientation/src/index " ;
import React , { Component } from 'react'
import DeviceOrientation , { Orientation } from 'react-screen-orientation'
class Example extends Component {
render ( ) {
return (
< DeviceOrientation xss=removed>
{ /* Will only be in DOM in land
评论0
最新资源