forked from module-federation/module-federation-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
31 lines (27 loc) · 622 Bytes
/
App.js
File metadata and controls
31 lines (27 loc) · 622 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { VERSION, nth } from "lodash";
import React from "react";
const RemoteExample = React.lazy(() => import("app2/Example"));
const App = () => {
return (
<div>
<h1>App 1 Host</h1>
<p>Lodash v{VERSION}</p>
<p>
<code>
typeof lodash.nth
<br />
// => {typeof nth}
</code>
<br />
<br />
<em>
(<code>lodash.nth</code> not available until lodash@4.11)
</em>
</p>
<React.Suspense fallback="Loading Example">
<RemoteExample />
</React.Suspense>
</div>
);
};
export default App;