How do I route to html file in react
- User
How do I route to html file in react
- Assistant
- User
the thing is. I have a .html file and I want to render it at /privacy-policy
- Assistant
If you have an existing HTML file that you want to render at a specific route in your React application, you can achieve this using the
react-router-domlibrary. Instead of directly rendering the HTML file, you will need to create a React component that embeds the HTML content. Here's how you can do it: