kelsonpw / react-chrome-extension-router

A dead simple routing solution for browser extensions written in typescript with React Hooks. Context free.
MIT License
51 stars 7 forks source link

How to have different initial route? #37

Open kuwakuwi1 opened 1 year ago

kuwakuwi1 commented 1 year ago

Hi @kelsonpw , first of all, great library. Thanks for making this.

I just wanna ask: is it possible to have different initial route? (maybe based on url hash)?

For example I want default entry point to be component <One /> but sometimes, I also want the entry point to be component <Two />,

can I do that with this library? Or maybe I need to implement it myself?

Thanks in advance.