Releases: doong-jo/react-device-orientation-hook
Releases · doong-jo/react-device-orientation-hook
Release 1.0.0
First Release
You can use this HOOK as shown below.
import useDeviceOrientation from 'react-device-orientation-hook;
function Component() {
const { transformStyle, resetPivotOrientation } = useDeviceOrientation();
return (
<>
<div style={transformStyle} onClick={resetPivotOrientation} >
Hello World!
</div>
<p>Touch text and Revise orientation</p>
</>
);
}