react-device-detect
Detect device, and render view according to detected device type.
File Explorer
Download Latest Version (.zip)- bug_report.md
- feature_request.md
- api.md
- selectors.md
- views.md
- get-ua-data.spec.js
- types.spec.js
- views.spec.js
- useDeviceData.js
- useDeviceSelectors.js
- useOrientationChange.js
- views.js
- withOrientationChange.js
- constants.js
- typesMaps.js
- buildSelectors.js
- detect.js
- parse.js
- selectors.js
- types.js
- payloads.js
- utils.js
- index.js
- .gitignore
- .jestSetup.js
- .npmignore
- .prettierrc
- index.d.ts
- LICENSE
- package-lock.json
- package.json
- README.md
- rollup.config.js
# Installation Guide
1. Get the code
git clone https://github.com/duskload/react-device-detect
Downloads the entire project code from GitHub to your computer.
cd react-device-detect
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install react-device-detect --save
Downloads and installs the libraries listed in package.json.
yarn add react-device-detect
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
