Hi all!
I have SSR with React Router Config with routes looks like:
export default routes = [
{
path: '/',
exact: true,
component: Home
},
{
path: '/catalog',
exact: true,
component: Catalog
}
}
and app plays fine,
but i think, is it possible improve it with Dynamic Import and preload components per route?
something like this:
const Catalog = await import("../catalog").then((comp)=>comp);
but how about router object?
Thanks in advance