If my url path starts with a /-IDNUMBER, I want the react-router to render the Home Component. For example if the URL is:
/-MX9EnU6aOtENtdQxLvF or /-MX9F3z22XrMjlgEAHUI it should render the Home Component. I assume the best way to do this is to use Regex (let me know if there is a better way). Here is what I tried:
<Route path="/^-" component={Home} />.
This is not working, I tried other variations which also don't work. Please let me know how to fix this.