Skip to content

Commit

Permalink
fix: update deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
berviantoleo committed Aug 6, 2023
1 parent d649df9 commit babf8d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/demo/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import ReactDOM from "react-dom";
import { createRoot } from 'react-dom/client';

Check failure on line 1 in examples/demo/src/index.tsx

View workflow job for this annotation

GitHub Actions / Test and Build (18)

Replace `'react-dom/client'` with `"react-dom/client"`

Check failure on line 1 in examples/demo/src/index.tsx

View workflow job for this annotation

GitHub Actions / Test and Build (20)

Replace `'react-dom/client'` with `"react-dom/client"`
import "./index.css";
import App from "./App";
import * as serviceWorker from "./serviceWorker";

const rootElement = document.getElementById("root");
const root = createRoot(rootElement);
// eslint-disable-next-line
ReactDOM.render(<App />, rootElement);
root.render(<App />);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down

0 comments on commit babf8d0

Please sign in to comment.