I wanted to make two buttons in a div, one doing something unrelated, and the other would've downloaded a pdf file. But from what I found, the only solution was using an anchor tag, which was pretty disappointing, since it messed up the styling I was going with. Is there any way to use a button element in react/html to download a file?
Here's the code I have at the moment using an anchor tag, but I'm :
<div className="aboutMeButtons">
<button className="button btn-1">Hire Me</button>
<a href={resume} download className="button">
Download Resume
</a>
</div>
Here's the css, in case that is important:
.aboutMeButtons {
margin-top: 50px;
padding-bottom: 100px;
text-align: center;
box-shadow: none;
}
.btn-1 {
margin-right: 30px;
}
.button {
background-color: #37D4AF;
border-color: #37D4AF;
border-radius: 5px;
box-shadow: none;
outline: none;
padding: 10px;
color: #fff;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: bold;
font-size: 20px;
min-width: 220px;
height: 70px;
text-decoration: none;
}