Nested routing not working
One video is with npm, the other with pnpm
Both not working, what am I doing wrong?
cat.tsx
/cat/index.tsx
/cat/dog.tsx
Both not working, what am I doing wrong?
cat.tsx
/cat/index.tsx
/cat/dog.tsx
import { A, Outlet } from "solid-start";
const CatLayout = () => {
return (
<>
<A href="/cat">Cat</A>
<A href="/cat/dog">Dog</A>
<hr />
<Outlet />
</>
);
};
export default CatLayout;const Cat = () => {
return <>Cat</>;
};
export default Cat;const Dog = () => {
return <>Dog</>;
};
export default Dog;