Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link の中に a タグを持つルールを追加する #10

Open
mono-tmt opened this issue Aug 27, 2021 · 0 comments
Open

Link の中に a タグを持つルールを追加する #10

mono-tmt opened this issue Aug 27, 2021 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mono-tmt
Copy link
Collaborator

mono-tmt commented Aug 27, 2021

元 : #6 (comment)

追加したいルール

Linkコンポーネントに装飾を追加したい場合、下記に沿って記述する
next/link の Linkコンポーネントに passHref を追加し、aタグ の href を上書きする

<Link href="/my-amazing-page" passHref>
  <a href="replace">Go to my amazing page</a>
</Link>
@mono-tmt mono-tmt added the documentation Improvements or additions to documentation label Aug 27, 2021
@mono-tmt mono-tmt self-assigned this Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant