From 3fdd5819b57765cde7f36f5a92c563410e8705f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 27 Jun 2024 11:26:17 +0200 Subject: [PATCH] Update Build.md Make the shims example React 18 compatible. --- content/en/functions/js/Build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/functions/js/Build.md b/content/en/functions/js/Build.md index 7a3cdc43fd..7d09c05f63 100644 --- a/content/en/functions/js/Build.md +++ b/content/en/functions/js/Build.md @@ -88,8 +88,8 @@ module.exports = window.ReactDOM; With the above, these imports should work in both scenarios: ```js -import * as React from 'react' -import * as ReactDOM from 'react-dom'; +import * as React from 'react'; +import * as ReactDOM from 'react-dom/client'; ``` target