daggerboard
Declarative routing that just works.
Exports a Provider Component:
{ return <Provider history=> <MyRouter /> </Provider> }
Exports two React hooks:
useRouter()
: Declare a router which acts as a switch on URL stateuseHistory()
: Get access to path parameters or navigation methods
{ return }
TypeScript
Written in TypeScript and shipped with type definitions.
TODO:
- exact vs loose matches ✅
- hook for url information ✅
- prevent potential errors caused by async mutation with promises ✅
- allow for recovery from null routes for more intuitive use ✅
- get real tests up and running again
- exact helper function
- unstack recursion for trace reading
- clean up code some more (still an early draft)