Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-a/browserwall
A small, fast and rich-API browser/platform/engine detector for React.
https://github.com/s-a/browserwall
browser detection ender parser react reactcomponent reactjs sniff ua user-agent useragent
Last synced: about 1 month ago
JSON representation
A small, fast and rich-API browser/platform/engine detector for React.
- Host: GitHub
- URL: https://github.com/s-a/browserwall
- Owner: s-a
- Created: 2020-09-18T05:43:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T09:43:56.000Z (over 4 years ago)
- Last Synced: 2025-01-04T23:50:25.065Z (about 2 months ago)
- Topics: browser, detection, ender, parser, react, reactcomponent, reactjs, sniff, ua, user-agent, useragent
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.npmjs.org/package/browserwall)
[](https://www.npmjs.org/package/browserwall)
[](/LICENSE.md#mit)
[](http://s-a.github.io/donate/)# React Browser Wall Component
This component is based on [bowser](https://github.com/lancedikson/bowser) so `` [property settings are defined here](https://github.com/lancedikson/bowser). `` will render a default `Browser not supported DOM` but you can define your own `children` and provide a side entrance link.
## Installation
```bash
npm i browserwall --save
```## Example 1
```javascript
import {BrowserWall, BrowserWallExit} from 'browserwall'const supportedBrowserTree = {
chrome: '>86',
firefox: '>80',
edge: '>86'
}
const result = (
{this.state.user ? null : }
{this.renderApplicationCore()}
)
```## Example 2
```javascript
import {BrowserWall, BrowserWallExit} from 'browserwall'const supportedBrowserTree = {
chrome: '>86',
firefox: '>80',
edge: '>86'
}
const result = (
{this.state.user ? null : }
{this.renderApplicationCore()}
:O( I feel adventurous. I want to go in anyway.
)
```