We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8760387 commit d86eed9Copy full SHA for d86eed9
different-react-versions-isolated/app1/src/App.js
@@ -1,12 +1,12 @@
1
import React, { useEffect } from 'react';
2
-import { inject, cleanup } from 'app2/appInjector';
+import { inject, unmount } from 'app2/appInjector';
3
4
const parentElementId = 'parent';
5
6
const App = () => {
7
useEffect(() => {
8
inject(parentElementId);
9
- return () => cleanup(parentElementId);
+ return () => unmount(parentElementId);
10
}, []);
11
12
// App2 will be injected in the div with parentElementId
0 commit comments