From 1fcb059b01d3a3d83c1422cdb30ca7ee25c5f349 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 29 Oct 2023 10:45:57 -0400 Subject: [PATCH] build(examples): upgrade devDependencies in webpack --- examples/webpack/package.json | 4 ++-- examples/webpack/src/index.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/webpack/package.json b/examples/webpack/package.json index 8b365bfc..ad135bfe 100644 --- a/examples/webpack/package.json +++ b/examples/webpack/package.json @@ -8,7 +8,7 @@ "html-react-parser": "../../", "react": "^18.2.0", "react-dom": "^18.2.0", - "webpack": "^5.75.0", - "webpack-cli": "^5.0.1" + "webpack": "^5.89.0", + "webpack-cli": "^5.1.4" } } diff --git a/examples/webpack/src/index.js b/examples/webpack/src/index.js index d80a6384..ace2d1dc 100644 --- a/examples/webpack/src/index.js +++ b/examples/webpack/src/index.js @@ -1,6 +1,6 @@ -import ReactDOM from 'react-dom/client'; +import { createRoot } from 'react-dom/client'; import parse from 'html-react-parser'; -ReactDOM.createRoot(document.getElementById('root')).render( - parse('

HTMLReactParser loaded with Webpack

') -); +const root = createRoot(document.getElementById('root')); + +root.render(parse('

HTMLReactParser loaded with Webpack

'));