Answers for "navigating programatically react"

4

navigating programatically react

import { Route } from 'react-router-dom'

const Button = () => (
  <Route render={({ history}) => (
    <button
      type='button'
      onClick={() => { history.push('/new-location') }}
    >
      Click Me!
    </button>
  )} />
)
Posted by: Guest on July-01-2020

Code answers related to "navigating programatically react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language