Skip to content

Commit

Permalink
fix(tutorial): use "root" as root div id (#8582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki authored Jan 16, 2022
1 parent abbea84 commit e3f1a29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- brockross
- chaance
- chasinhues
- christopherchudzicki
- elylucas
- hongji00
- JakubDrozd
Expand Down
2 changes: 1 addition & 1 deletion tutorial/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>React Router - Tutorial</title>
</head>
<body>
<div id="app"><!--app-html--></div>
<div id="root"><!--app-html--></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion tutorial/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import * as ReactDOM from "react-dom";
import App from "./App";
import "./main.css";

let rootElement = document.getElementById("app");
let rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

0 comments on commit e3f1a29

Please sign in to comment.