react-hook-screen-orientation icon indicating copy to clipboard operation
react-hook-screen-orientation copied to clipboard

A React hook for detecting screen orientation

Results 7 react-hook-screen-orientation issues
Sort by recently updated
recently updated
newest added

Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...

dependencies

- Update dev dependencies - Add ESLint (+rule sets) and prettier to dev dependencies - Add npm scripts to run prettier and eslint - Create GH Actions workflow to run...

https://developer.mozilla.org/en-US/docs/Web/API/Window/orientationchange_event I humbly suggest the following change to useEffect: ``` useEffect(() => { // window.addEventListener( // 'orientationchange', // updateOrientation // ) window.screen.orientation.onchange = updateOrientation // return () => { //...