diff --git a/content/blog/2022-03-08-react-18-upgrade-guide.md b/content/blog/2022-03-08-react-18-upgrade-guide.md
index 92fa2933a..677682a39 100644
--- a/content/blog/2022-03-08-react-18-upgrade-guide.md
+++ b/content/blog/2022-03-08-react-18-upgrade-guide.md
@@ -60,7 +60,7 @@ We've also removed the callback from render, since it usually does not have the
```js
// Before
const container = document.getElementById('app');
-ReactDOM.render(, container, () => {
+render(, container, () => {
console.log('rendered');
});
@@ -74,7 +74,7 @@ function AppWithCallbackAfterRender() {
}
const container = document.getElementById('app');
-const root = ReactDOM.createRoot(container);
+const root = createRoot(container);
root.render();
```