electron-react-boilerplate

react-router-dom Route paths defined behind '/' not working

我们两清 提交于 2020-07-10 11:25:33
问题 Im working on a proyect Using electron-react-boilerplate, react-hooks and Context. I have the issue on react-router-dom. Every path defined behind '/', navigation wont work, otherwhise it works properly. I tryed adding exact attribute on it, but first page stoped rendering Here is my code: Index.js: import React, { Fragment } from 'react'; import { render } from 'react-dom'; import './app.global.css'; import App from './App'; render(<App />, document.getElementById('root')); App.js: import