Skip to content

Commit

Permalink
Import createRoot from 'react-dom/client' as suggested by the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeorge committed Mar 23, 2023
1 parent e2638aa commit 60cc751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect } from 'react';
import { createRoot } from 'react-dom';
import { createRoot } from 'react-dom/client';

// Root component.
function Root() {
Expand Down

0 comments on commit 60cc751

Please sign in to comment.