Open desrtCodr opened 1 year ago
I believe the ArticleItem.js component needs to be updated to include the "legacyBehavior" prop due to the fact that <a> tags are used as children. Or needs to be refactored to meet the new Link requirements.
<a>
possible solution:
import Link from 'next/link' import articleStyles from '../styles/Article.module.css' const ArticleItem = ({ article }) => { return ( <Link legacyBehavior href={`/article/${article.id}`}> <a className={articleStyles.card}> <h3>{article.title} →</h3> <p>{article.body}</p> </a> </Link> ) } export default ArticleItem
great one thank you , I have solved that by putting div tag instead of a tag
Thank you guys. solved it too.
I believe the ArticleItem.js component needs to be updated to include the "legacyBehavior" prop due to the fact that
<a>
tags are used as children. Or needs to be refactored to meet the new Link requirements.possible solution: