react
react copied to clipboard
Mark Link Component for nested route
Component <Link> doesn't know about the nested route.
When it is necessary to mark a nested route from the main one.
`const router = useRouter(); const path = useUnit(router.$path);
const isNested = path.includes(nestedPath)`
maybe there is a more elegant way?