I am failing to apply Atlassian’s routing documentation to my much more basic app; all I want is one path ending per page-component via something like this:
const router = createBrowserRouter([
{
path: '/',
element: <Home />,
errorElement: <NotFound />,
},
{
path: '/entry',
element: <Entry />,
errorElement: <NotFound />,
},
{
path: '/week',
element: <Week />,
errorElement: <NotFound />,
},
]);
ReactDOM.render(
<React.StrictMode>
<RouterProvider router={router} />
</React.StrictMode>,
document.getElementById('root')
);
The above works in a standalone React app, although I could do without the fallback component. I’ve attempted a silly number of variations. Does any one of you have a simple router that works in Forge?