<Link/>

Description

<Link/> component is used to navigate to other route inside <Switch/> component.

Basic Usage

LinkExample.jsx
import React from 'react'
import {Link} from 'react-queue-router'

const LinkExample = () => {
  return (
    <nav>
      <Link to='/'>Top</Link>
      <Link to='/about'>About</Link>
    </nav>
  )
 }
 
export default LinkExample

When you click <Link/>, it implements history.push inside.

Note that if the value of to is equivalent to the currentPath, <Link/> does NOT fire history.push.

About currentPath, see RouterContext page.