diff --git a/docs/bundler/index.md b/docs/bundler/index.md index d83631f93b..147350c750 100644 --- a/docs/bundler/index.md +++ b/docs/bundler/index.md @@ -43,7 +43,7 @@ Let's build our first bundle. You have the following two files, which implement import * as ReactDOM from 'react-dom/client'; import {Component} from "./Component" -const root = ReactDOM.createRoot(document.getElementById('root')); +const root = ReactDOM.createRoot(document.getElementById('root')!); root.render() ```