jherr / practical-module-federation-20

Code for Practical Module Federation 2.x
29 stars 15 forks source link

CRA example - why don't we have to use React.Lazy? #4

Open cjones26 opened 2 years ago

cjones26 commented 2 years ago

My issue title says it all--in the Getting Started - CRA example here, we can import our remotes directly and no longer have to utilize React.lazy, when we do in fact have to use it in the 1.2 on page 31.

Why is this the case? I can't see any obvious difference, as generating our MFE app with create-mfe-app seems to have absolutely no differences than what we do in the next chapter with CRA.