Skip to content

Commit

Permalink
fix: properly use react 18 render
Browse files Browse the repository at this point in the history
  • Loading branch information
longtv2222 committed Dec 11, 2023
1 parent 5f60d35 commit a777f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prototype/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import { App } from './App'
const container = document.getElementById('root');
if (!container)
throw new Error("Container is undefined");
const root = createRoot(container); // createRoot(container!) if you use TypeScript
const root = createRoot(container);
root.render(<App />);

0 comments on commit a777f14

Please sign in to comment.