View/Download Pdf Files in React - Router 4
问题 I have a set of pdf files sitting in a folder in my project. All I need to do is to create a link to these PDF files and view them in browser or download it. I use React Router 4 and React 16 and create-react-app bootstrapping tool. Regardless of how I link it (Link component or a tag) it still goes to my last Route in my router config. I have been googling for last two hours... But no luck.. Is there any way to tell router not to route for PDF/XLS files? Thanks 回答1: I met the same issue, I