webpack/examples/module-federation/src-c/LazyComponent.js

12 lines
356 B
JavaScript

import React from "react";
import random from "lodash/random";
const Component = () => (
<div style={{ border: "5px solid darkgreen" }}>
<p>I'm a lazy Component exposed from container C!</p>
<p>I'm lazy loaded by the app and lazy load another component myself.</p>
<p>Using lodash in Remote: {random(0, 6)}</p>
</div>
);
export default Component;