title: React redirect to mobile site
body: <p>On my react app I need to redirect mobile users to the mobile site. When someone goes to my url for example: <code>example.com</code>, if they are on mobile, I need the url to redirect to <code>mobile.example.com</code>. I havent found any good articles on file structures for a react app like this that has a mobile view and a desktop view. I also need to test it on localhost. I am using <code>react-router-dom</code> for routing as well couldnt find anything on changing the baseurl to mobile either.</p>