Skip to content

Commit

Permalink
Add provider to index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 21, 2023
1 parent 7d14f8c commit dde41cf
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 @@ -4,11 +4,14 @@ import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter as Router } from "react-router-dom";
import { CurrentUserProvider } from "./contexts/CurrentUserContext";

ReactDOM.render(
<React.StrictMode>
<Router>
<App />
<CurrentUserProvider>
<App />
</CurrentUserProvider>
</Router>
</React.StrictMode>,
document.getElementById("root")
Expand Down

0 comments on commit dde41cf

Please sign in to comment.