Bard mobx router

Bard mobx router

  • Github

›Plugins

About Bard router

  • Philosophy
  • Getting started

Router and routes

  • Route specific hooks
  • Router hooks

React UI Components

  • <Route/>
  • <Link/>

Plugins

  • Scroll plugin
  • Window title plugin
  • Html5 history plugin

How to's

  • How-to's / FAQ

Scroll plugin

Simple plugin that manages the window scroll automatically when navigating.

Currently it resets the scroll back to top when navigating.
It could be extended to restore scroll on going back. (ask in an issue)

import {Router, scrollPlugin} from 'bard-router'

const router = new Router(/*...*/)
scrollPlugin.register(router)
← <Link/>Window title plugin →
Bard mobx router
Docs
Getting Started
Community
Who is using this?Chat on Gitter
More
GitHub
Copyright © 2023 Aodev