‚̧Neutral Point Measurement
    Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    browserwall

    1.0.2¬†‚Äʬ†Public¬†‚Äʬ†Published

    NPM Version NPM Downloads Massachusetts Institute of Technology (MIT) Donate

    React Browser Wall Component

    This component is based on bowser so <BrowserWall /> property settings are defined here. <BrowserWallExit /> will render a default Browser not supported DOM but you can define your own children and provide a side entrance link.

    Installation

    npm i browserwall --save

    Example 1

    import {BrowserWall, BrowserWallExit} from 'browserwall'
     
    const supportedBrowserTree = {
        chrome: '>86',
        firefox: '>80',
        edge: '>86'
    }
    const result = (
        <ErrorBoundary>
            <BrowserWall {...supportedBrowserTree}>
                <div className="App" valid="true">
                    {this.state.user ? null : <Redirect to={`/login${redirectUri}`}></Redirect>}
                    {this.renderApplicationCore()}
                    <ToastContainer />
                </div>
                <BrowserWallExit />
            </BrowserWall>
        </ErrorBoundary>
    )

    Example 2

    import {BrowserWall, BrowserWallExit} from 'browserwall'
     
    const supportedBrowserTree = {
        chrome: '>86',
        firefox: '>80',
        edge: '>86'
    }
    const result = (
        <ErrorBoundary>
            <BrowserWall {...supportedBrowserTree} isValidBrowser={this.state.isValidBrowser}>
                <div className="App" valid="true">
                    {this.state.user ? null : <Redirect to={`/login${redirectUri}`}></Redirect>}
                    {this.renderApplicationCore()}
                    <ToastContainer />
                </div>
                <BrowserWallExit>:O( <a href="#side-entrance" onClick={this.onSideEntranceClick.bind(this)}>I feel adventurous. I want to go in anyway.</a></BrowserWallExit>
            </BrowserWall>
        </ErrorBoundary>
    )

    Install

    npm i browserwall

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    54 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar