mailto: throw error in next js
Answered
Black and yellow mud dauber posted this in #help-forum
Black and yellow mud dauberOP
<a href='mailto:contact@omnihale.com'>
<button className={props.className}>Contact Us</button>
</a>10 Replies
what is the error?
also, why is there a button inside link? (thats prob the error - hydration?)
Black and yellow mud dauberOP
yes getting some hydration error
trying to lauch external mail software
well... don't add button inside anchor link...
Black and yellow mud dauberOP
using html mailto
use one or the other... you can add an onclick to the link tho
Answer
Black and yellow mud dauberOP
thanks solved
what did you do?
Black and yellow mud dauberOP
used button and called window.location.href when clicked on