I am having a responsive react Web-Application where i need a specific route only for the case of mobile that is if the device width is less than something for example 'x' but all the routes have been created in the same file something like:
<BrowserRouter>
<Switch>
<Route exact path='/login/' component={Login} />
<Redirect exact from='/' to='/login/' />
<Route exact path='/sample/' component={sample} />
</Switch>
so the route is now accessible from devices with dimensions of more than 'x' width also how can i make the route available based on device width or how can i block a specific route based on device dimensions.