This library provides client-side routing for JavaScript applications built using Twist. This lets you manage page transitions in your application and tie these to changes in the URL. It also provides a full history service.
yarn add @twist/router- Add
@twist/routerto the"libraries"section of your.twistrc.
Please see the detailed documentation available here.
To play with the example in this repository, run:
yarn install
yarn run watch
Then go to http://localhost:9000/ in your browser.