solid-typefu-router5
v1.6.3
Published
Router5 based routing library for solid-js with TypeScript
Downloads
31
Readme
solid-typefu-router5
This package provides a router with integration with router5 and solid-js, and features type safe router and link creation. Requires TypeScript 4.1+.
Features
- Type-safe links
- Type-safe link parameters
- Type-safe routing
Example Usage
- https://github.com/mikeplus64/solid-typefu-router5/blob/master/example/src/index.tsx
Quick Start
Create some routes that are in the shape [[
RouteTreeLike
]]. See the Router5 documentation for what route objects can look like.Use [[
createSolidRouter
]] on those routesEnjoy your type-safe
Link
andRouter
components