Next I'm using the react-router-dom while I'm serving the project folder as if it were root works, the routes go to the specific components my problem is when I put in a server:
The part of the front where the react is I put inside the folder / app and my php scripts that interact with the front in / server.
Different when I put the react in the root / it works perfectly.
<Router>
<div>
<a href="./">inicio</a><span> </span>
<a href="./maps">maps</a><span> </span>
<a href="./cadastro">cadastro</a>
<Route path={"/app/maps"} component={TelaMaps} />
<Route path={"/app/cadastro"} component={TelaCadastro} />
</div>
</Router>