I have a Reactjs SPA whose file structure looks like this:
In that app there's a simple component (Resume.js) where I want the users to be able to see/download a pdf file within the browser (resume_english.pdf). However I haven't been able to do this neither locally nor in GitHub pages where I plan on hosting the SPA. It always redirects me to the homepage.
Resume.js looks like this:
import React, {Component} from 'react';
class Resume extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }
    render() {
        return (
            <div className={'resume-container'}>
                <div id={'resume-pdf'}>You can view, download and print my résumé in pdf format in <a
                    href={'./public/resume_english.pdf'}>English</a> and <a href={'#'}>Spanish</a></div>
            </div>
        );
    }
}
export default Resume;
Any ideas on what might be wrong on how to solve it? I already tried importing like this, but didn't work.
