ReactJS Link tag - Uncaught ReferenceError: Link is not defined
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!
If you use Nextjs, you can also use Link from next/link
import Link from "next/link"
another option would be
import {Link} from 'react-router-dom';