How-to guides
Read device information
Display device metadata after mount.
Read device state
Keep the default internalPlugins.device enabled and call:
const device = useDeviceInfo(); // @akshatowo/radical/react| State | Render |
|---|---|
loading | Placeholder |
error | Handled _tag |
| Success | value.platform, value.model |
You see device metadata after mount.
Do not authorize requests with browser device information.