Skip to content

Commit e3ee107

Browse files
salzhranigregberge
authored andcommitted
docs(server): add missing imports (#133)
1 parent 2809217 commit e3ee107

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/server/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848

4949
```js
5050
import path from 'path'
51-
import { LoadableState } from '@loadable/server'
51+
import { LoadableState, LoadableStateManager } from '@loadable/server'
5252
// This is the manifest generated by webpack
5353
import manifest from '../dist/loadable-manifest.json'
5454

@@ -92,7 +92,7 @@ module.exports = {
9292

9393
```js
9494
import path from 'path'
95-
import { LoadableState } from '@loadable/server'
95+
import { LoadableState, LoadableStateManager } from '@loadable/server'
9696

9797
const loadableState = new LoadableState()
9898

@@ -135,7 +135,7 @@ The `collectChunks` method wraps your element in a provider. Optionally you can
135135

136136
```js
137137
import { renderToString } from 'react-dom/server'
138-
import { LoadableState, LoadableStateManager } from 'styled-components'
138+
import { LoadableState, LoadableStateManager } from '@loadable/server'
139139

140140
const loadableState = new LoadableState()
141141
const html = renderToString(
@@ -191,7 +191,7 @@ To improve performance, you can include [`<link ref="preload">`](https://css-tri
191191

192192
```js
193193
import path from 'path'
194-
import { LoadableState } from '@loadable/server'
194+
import { LoadableState, LoadableStateManager } from '@loadable/server'
195195
// This is the manifest generated by webpack
196196
import manifest from '../dist/loadable-manifest.json'
197197

0 commit comments

Comments
 (0)