Cannot Nextjs Component (Link) using styled-components
I am trying to styled
Link Component provided by
I have done all the setup including
/pages. But still I am unable to Style the link component.
For setup, I have followed this article: https://medium.com/nerd-for-tech/using-next-js-with-styled-components-easy-dfff3849e4f1
This is working fine
const StyledComponent = Styled.a` color: red; `
But this does not
const StyledComponent = Styled(Link)` color: red; `
Can anyone pls tell me what am I missing? What has to be done now?
Any help will be appreciated.
Source: CSS – Stack OverflowNovember 25, 2021