Skip to content

Commit

Permalink
add BrowserRouter
Browse files Browse the repository at this point in the history
basename="/goit-react-hw-05-movies"
  • Loading branch information
danretegan committed Feb 10, 2024
1 parent 8e421c5 commit 664cc0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import { App } from 'components/App';
import './index.css';
import { BrowserRouter } from 'react-router-dom';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
<BrowserRouter basename="/goit-react-hw-05-movies">
<App />
</BrowserRouter>
</React.StrictMode>
);

0 comments on commit 664cc0d

Please sign in to comment.