solid-router | return Navigate as component
Is there any way to return
<Navigate href="/auth/login" /> as a component rather than an element?
On version solid-router@0.8 I was able to return an element for a route, however the new version 0.12 requires a component instead.
1 Reply
components are just functions returning jsx - either put the navigates in arrow functions or make component into an arrow function