I've read that ReactRouter sucks.
How can I render different components strictly based on particular routes, i.e, with:
ReactDOM.render(<Game />, document.getElementById("root"));
How could I change this to use something like this that I found here:
const routes = [
{ path: '/', action: () => <HomePage /> },
{ path: '/game', action: () => <Game /> },
{ path: '/game2', action: () => <Game2 /> }
];
I feel like this should NOT be that complicated.