Skip to content

Commit 622ef85

Browse files
committed
Updates docs.
1 parent 4430b12 commit 622ef85

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ This is how you would use `react-async-component` in a "browser only" React appl
217217

218218
Let's imagine a Component that describes your application:
219219

220-
__MyApp.js__:
221220
```jsx
222221
// 👇 create an async component
223222
const AsyncHome = createAsyncComponent({
@@ -236,7 +235,6 @@ export default function MyApp() {
236235

237236
And then a module that renders it:
238237

239-
__client.js__:
240238
```jsx
241239
import React from 'react';
242240
import { render } from 'react-dom';
@@ -267,7 +265,6 @@ This is how you would use `react-async-component` in a "server side rendering" R
267265

268266
Let's imagine a Component that describes your application:
269267

270-
__MyApp.js__:
271268
```jsx
272269
// 👇 create an async component
273270
const AsyncHome = createAsyncComponent({
@@ -287,7 +284,6 @@ export default function MyApp() {
287284

288285
And then a module that does the browser/client side rendering:
289286

290-
__client.js__:
291287
```jsx
292288
import React from 'react';
293289
import { render } from 'react-dom';
@@ -314,7 +310,6 @@ withAsyncComponents(app)
314310

315311
And then an express middleware (you could use any http server of your choice) to do the rendering:
316312

317-
__reactApplicationMiddlware.js__:
318313
```jsx
319314
import React from 'react';
320315
import { withAsyncComponents } from 'react-async-component'; // 👈

0 commit comments

Comments
 (0)