score:19

Accepted answer

If you're thinking of the React router Link. Then you need to import it.

import { Link } from 'react-router';

or

var Link = require('react-router').Link

otherwise rendering a pure <a> does the trick!

score:1

If you use Nextjs, you can also use Link from next/link

import Link from "next/link"

score:17

another option would be

import {Link} from 'react-router-dom';

Related Query

More Query from same tag