The Australian Government coat of Arms

Communities of practice

Communities of practice

Issue with passing Link into Design System React Components

Hi all, I currently have an issue with passing the Link component into any of the Design System React Components. Here is an example with the Main Nav component:

The Link component is not being accepted as a prop and routes aren’t changing upon clicking the links. Currently happening across all other components such as the Header and Footer for me as well.

1 Like

Hey @quoc.lieu,

Welcome to the forum!

It’s probably to do with the version of react-router-dom. It seems there has been some major updates to the react-router-dom library since the main-nav component was first built. I can see in the component package that version 4.3.1 was being used as a dev dependency. I would try version 4.3.1 (or a newer version if you can find one that is compatible).

Raj

1 Like

Thanks @sukhraj.ghuman . Got it to work on 4.3.1

1 Like