Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

[![NPM Version](http://img.shields.io/npm/v/browserwall.svg)](https://www.npmjs.org/package/browserwall)
[![NPM Downloads](https://img.shields.io/npm/dm/browserwall.svg)](https://www.npmjs.org/package/browserwall)
[![Massachusetts Institute of Technology (MIT)](https://s-a.github.io/license/img/mit.svg)](/LICENSE.md#mit)
[![Donate](http://s-a.github.io/donate/donate.svg)](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.


)
```