I want to implement a simple button that will open my resume.pdf file in the browser for the user to view and download. How can I achieve this in react?
<button className="a-resume" onClick={handleClick()}>resume</button>
This will open the PDF in a new tab:
function handleClick()
{
window.open("example.com/path/to/resume.pdf","_blank");
}