How to include pdf link in response.js file
I want to be able to open in a new tab the PDF that I have in my included folder. I use create-react-app and set a link to open a new tab using pdf, in my local mode it works, but when I create it the tab loads as a blank page with HTTP ERROR 404.
in my react component this is how i configured it
<NavLink to={PDF} target='_blank' className='nav-link'>pdf</NavLink>
as I mentioned earlier, in my local mode it works fine, but in my assembly it opens a 404 page.
+3
source to share
1 answer