Skip to content

React Router link not work #6590

@PlutoCA

Description

@PlutoCA

Version

"react": "^16.8.1",
"react-dom": "^16.8.1",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",

Steps to reproduce

import React, { Component } from 'react';
import { Link } from 'react-router-dom';

<Link to='/'>Home</Link></Router> 

Expected Behavior

It didn't work, and it throws an exception for me. I don't know what happened,?

Most of google's answers are about router version issues, but it doesn't seem to be

can help me? Thank you

Actual Behavior

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions