On my react app I need to redirect mobile users to the mobile site. When someone goes to my url for example: example.com, if they are on mobile, I need the url to redirect to mobile.example.com. 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 react-router-dom for routing as well couldnt find anything on changing the baseurl to mobile either.