ink
ink copied to clipboard
Add react-router/MemoryRouter to list of useful components in the readme
I've been looking for a solution to implement routing in ink, in particular I saw this https://github.com/jimmed/ink-router which looks abandoned but let me understand I was not the first one to take a look at this need,
I ended up looking at the source code of 'react-router' to implement my own quick and dirty solution, and then realized that MemoryRouter could do the job, and indeed, I started using it in Ink and it worked just fine. For the record I have been managing Router state trough history functions, in particular history.push, and consuming context state through Switch/Route.
I think this would be good as a short tip/recipe at the bottom of the readme. It needs more context than just a link.
Will do a PR tomorrow if that's good for you
Solved in #399
Sorry for notifying in 2 years old thread but this documentation is really helpful and would love to have it on a more accessible place.