How can I add a space before link? Without CSS of course
Please check if you agree with our
<Link href="/[slug]" as="/privacy-policy/">
<a>Privacy policy</a>
</Link>
I also have a space after "... our " but the outcome is still this:
Please check if you agree with ourPrivacy policy
You can insert a space like this:
Please check if you agree with our
{" "}
<Link href="/[slug]" as="/privacy-policy/">
<a>Privacy policy</a>
</Link>
By placing the space in double quotes and surrounding by curly braces you tell React to interpret the expression inside the braces, which forces it to include the space as a literal string.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.