[go: up one dir, main page]

Skip to content

Commit

Permalink
added hash routes
Browse files Browse the repository at this point in the history
  • Loading branch information
becheract committed May 20, 2022
1 parent 408dcbe commit 26ab106
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"homepage": "http://Pepsiman715.github.io/React-todo/",
"homepage": "http://Pepsiman715.github.io/React-todo",
"name": "todo-app",
"author": {
"name": "Bechera",
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import App from './App';
import Help from './components/Help/Help'
import reportWebVitals from './reportWebVitals';
import './index.scss'
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { BrowserRouter, Routes, Route, HashRouter } from 'react-router-dom';
import { store } from './redux/store';
import { Provider } from 'react-redux';

ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<BrowserRouter>
<HashRouter>
<Routes>
<Route path="/React-Web-App" element={<App />} />
<Route path="/help" element={<Help />} />
</Routes>
</BrowserRouter>
</HashRouter>
</Provider>
</React.StrictMode>
,
Expand Down

0 comments on commit 26ab106

Please sign in to comment.