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
const supportedBrowserTree = chrome: '>86' firefox: '>80' edge: '>86'const result = <ErrorBoundary> <BrowserWall ...supportedBrowserTree> <div className="App" valid="true"> thisstateuser ? null : <Redirect to=`/login`></Redirect> this <ToastContainer /> </div> <BrowserWallExit /> </BrowserWall> </ErrorBoundary>
Example 2
const supportedBrowserTree = chrome: '>86' firefox: '>80' edge: '>86'const result = <ErrorBoundary> <BrowserWall ...supportedBrowserTree isValidBrowser=thisstateisValidBrowser> <div className="App" valid="true"> thisstateuser ? null : <Redirect to=`/login`></Redirect> this <ToastContainer /> </div> <BrowserWallExit>: