(App: () => React$Node)
| 81 | } |
| 82 | |
| 83 | function mountLegacyApp(App: () => React$Node) { |
| 84 | // $FlowFixMe[prop-missing]: These are removed in 19. |
| 85 | const {render, unmountComponentAtNode} = require('react-dom'); |
| 86 | |
| 87 | function LegacyRender() { |
| 88 | return createElement(App); |
| 89 | } |
| 90 | |
| 91 | const container = createContainer(); |
| 92 | |
| 93 | // $FlowFixMe[not-a-function]: These are removed in 19. |
| 94 | render(createElement(LegacyRender), container); |
| 95 | |
| 96 | // $FlowFixMe: These are removed in 19. |
| 97 | unmountFunctions.push(() => unmountComponentAtNode(container)); |
| 98 | } |
| 99 | |
| 100 | const shouldRenderLegacy = semver.lte( |
| 101 | process.env.E2E_APP_REACT_VERSION, |
no test coverage detected