Skip to content

Attempted import error: ‘Link’ is not exported from ‘react-router’. – React error. How to fix?

To fix this error, change your import statement from import { Link } from ‘react-router’ to:

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

See also  Loop inside React JSX

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.