Skip to content

useOrientation ​

Category
Browser

Hook that returns the current screen orientation

typescript
import { useOrientation } from '@siberiacancode/reactuse';

Usage ​

typescript
const { angle, type } = useOrientation();

Demo ​

Api ​

Contributors ​

Source • Demo