@@ -217,7 +217,6 @@ This is how you would use `react-async-component` in a "browser only" React appl
217217
218218Let's imagine a Component that describes your application:
219219
220- __ MyApp.js__ :
221220``` jsx
222221// 👇 create an async component
223222const AsyncHome = createAsyncComponent ({
@@ -236,7 +235,6 @@ export default function MyApp() {
236235
237236And then a module that renders it:
238237
239- __ client.js__ :
240238``` jsx
241239import React from ' react' ;
242240import { render } from ' react-dom' ;
@@ -267,7 +265,6 @@ This is how you would use `react-async-component` in a "server side rendering" R
267265
268266Let's imagine a Component that describes your application:
269267
270- __ MyApp.js__ :
271268``` jsx
272269// 👇 create an async component
273270const AsyncHome = createAsyncComponent ({
@@ -287,7 +284,6 @@ export default function MyApp() {
287284
288285And then a module that does the browser/client side rendering:
289286
290- __ client.js__ :
291287``` jsx
292288import React from ' react' ;
293289import { render } from ' react-dom' ;
@@ -314,7 +310,6 @@ withAsyncComponents(app)
314310
315311And then an express middleware (you could use any http server of your choice) to do the rendering:
316312
317- __ reactApplicationMiddlware.js__ :
318313``` jsx
319314import React from ' react' ;
320315import { withAsyncComponents } from ' react-async-component' ; // 👈
0 commit comments