score:0

I faced this issue when I was using <Link to={this.props.link}>

because props.link was set as undefined before user input .
A quick hack was changing it to <Link to={this.props.link || '/'}> you can simply replace the / with /# or any other default route(path) .

score:4

        <Link>
            <Button bsStyle="primary">About</Button>
        </Link>

here in Link you need to add to

        <Link to="/about">
            <Button bsStyle="primary">About</Button>
        </Link>

score:4

Read the documentation of react-router.

https://reacttraining.com/react-router/web/api/Link

The to prop is required for a Link component.

score:10

In Link you have to add "to", if you are not really using the router for anything you shouldn't use Link, but if for some reason you need it, then do it like this

<Link to="/#"><Button bsStyle="primary">About</Button></Link>

Again, if you are really using this to the router About you should use <Link to="/your-path" or whatever the route you want to using.

Update: I still don't understand why you have <button> inside your link. If for some reason you need a function, you can add onClik to the Link, and if it's for design purpose, you can add className='my-class'


Related Query

More Query from same tag