useDeviceInfo
Returns details about the user’s device, such as type, orientation, OS, or screen size.
Returns details about the user’s device, such as type, orientation, OS, or screen size.
Basic usage example to quickly see how the useDeviceInfo
works.
Property | Value |
---|---|
Operating System | undetermined |
Orientation | landscape-primary |
User Agent | |
Language | |
Screen Width | 0px |
Screen Height | 0px |
Device Pixel Ratio | 1 |
Touch Device | No |
Device Memory | N/A GB |
Hardware Concurrency | N/A cores |
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.