React has deleted ReactDOM.unstable_renderSubtreeIntoContainer(). It should be replaced with ReactDOM.createPortal() in Portal.js. But doing so causes this response when running tests.
` FAIL src/Dialog/tests/dialog.test.js (5.118s)
● Dialog component - Test correct render › encountered a declaration exception
Invariant Violation: Target container is not a DOM element.
83 | "className": PropTypes.oneOfType([
84 | PropTypes.string,
> 85 | PropTypes.object,
86 | PropTypes.array
87 | ]),
88 |
at invariant (node_modules/fbjs/lib/invariant.js:42:15)`
React has deleted ReactDOM.unstable_renderSubtreeIntoContainer(). It should be replaced with ReactDOM.createPortal() in Portal.js. But doing so causes this response when running tests.
` FAIL src/Dialog/tests/dialog.test.js (5.118s) ● Dialog component - Test correct render › encountered a declaration exception