(App)
| 68 | |
| 69 | // $FlowFixMe[missing-local-annot] |
| 70 | function mountStrictApp(App) { |
| 71 | function StrictRoot() { |
| 72 | return createElement(App); |
| 73 | } |
| 74 | |
| 75 | const container = createContainer(); |
| 76 | |
| 77 | const root = createRoot(container, {unstable_strictMode: true}); |
| 78 | root.render(createElement(StrictRoot)); |
| 79 | |
| 80 | unmountFunctions.push(() => root.unmount()); |
| 81 | } |
| 82 | |
| 83 | function mountLegacyApp(App: () => React$Node) { |
| 84 | // $FlowFixMe[prop-missing]: These are removed in 19. |
no test coverage detected