I have a basic project in Laravel 7, and I'm also using React for the UI. and I want React to handle the routes with React-router-dom instead of making use of the routes from the Laravel project.
Laravel has its own routing system and react does too, but when I change the url to go to a particular route Laravel's routing system takes over and sends me to their 404 page. I know it's not a code error, it's a conflict that usually occurs between the backend who serves the files from the web to the browser. How can I modify my Laravel project configuration so that it allows me to handle routes with react-router-dom?
Example:
when I enter my home:
and when I enter another view in React: