Skip to content

Commit 4432898

Browse files
committed
Updates docs.
1 parent a175507 commit 4432898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ Creates an asynchronous context that can be used by the `<AsyncComponentProvider
201201

202202
## Server Side Rendering
203203

204-
This library has been designed for generic interoperability with [`react-async-bootstrapper`](https://github.com/ctrlplusb/react-async-bootstrapper). The `react-async-bootstrapper` allows us to do a "pre-render parse" of a React Element tree and execute any "bootstrapping" process that may be attached to a components within the tree. In our case the "bootstrapping" process involves the resolution of the asynchronous components so that they can be rendered by the server. We use this generic library approach as it allows interoperability with other libraries that have "bootstrapping" needs (e.g. data preloading as done by `react-jobs`).
204+
This library has been designed for generic interoperability with [`react-async-bootstrapper`](https://github.com/ctrlplusb/react-async-bootstrapper). The `react-async-bootstrapper` utility allows us to do a "pre-render parse" of a React Element tree and execute any "bootstrapping" functions that are attached to a components within the tree. In our case the "bootstrapping" process involves the resolution of asynchronous components so that they can be rendered "synchronously" by the server. We use this 3rd party library as it allows interoperability with other libraries which also require a "bootstrapping" process (e.g. data preloading as supported by [`react-jobs`](https://github.com/ctrlplusb/react-jobs)).
205205

206206
Firstly, install `react-async-bootstrapper`:
207207

208208
```
209209
npm install react-async-bootstrapper
210210
```
211211

212-
Now, let's configure the "server" side. You could use a similar `express` (or other HTTP server) middleware:
212+
Now, let's configure the "server" side. You could use a similar `express` (or other HTTP server) middleware configuration:
213213

214214
```jsx
215215
import React from 'react';

0 commit comments

Comments
 (0)