Reduce Unused JavaScript (react dom)

This js file is detected to have unused javascript.

Is there an option to exclude this js file or a quick way to remove this error

on pagespeed you can find the following


…react-dom/cjs/react-dom.production.min.js 33.8 KiB 11.3 KiB
…react-dom/cjs/react-dom-server.browser.production.min.js 9.2 KiB 9.1 KiB
…react-dom/cjs/react-dom-server-legacy.browser.production.min.js 9.0 KiB 9.0 KiB

Please can someone help to fix this issue

Hi @shams, kindly visit the page here Remove unused JavaScript  |  Lighthouse  |  Chrome for Developers for more information with regards to React websites.