Bard mobx router

Bard mobx router

  • Github

›React UI Components

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

<Link/> component

The Link component lets your users navigate through your UI.

Link gets two props: to and params that represents a routing request.

To help with typical UI patterns, you can automatically get an active CSS class on your link if it matches the current route, by setting the autoActive attribute.

You can manually control this behaviour by setting active={true|false}.

Link component example

import React from 'react'
import {Link} from 'bard-router'

export default function SomeTextWithLink() {
  return (
    <div>
      <h3>Do something</h3>
      <p>
        <Link autoActive to="/private/my-things" params={{id: 1}}>
          View your things
        </Link>
        .
      </p>
    </div>
  )
}
← <Route/>Scroll plugin →
Bard mobx router
Docs
Getting Started
Community
Who is using this?Chat on Gitter
More
GitHub
Copyright © 2023 Aodev