Skip to content

Commit 1c1e4a9

Browse files
jamespearsonmgoudy91
authored andcommitted
Update README.md
Fixed the ES6 import, as the example code did not work (contentful was undefined)
1 parent a3489d3 commit 1c1e4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ You can use the es6 import with the library as follows
156156

157157
```js
158158
// import createClient directly
159-
import contentful from 'contentful-management'
160-
const client = contentful.createClient(
159+
import { createClient } from 'contentful-management'
160+
const client = createClient(
161161
{
162162
// This is the access token for this space. Normally you get the token in the Contentful web app
163163
accessToken: 'YOUR_ACCESS_TOKEN',

0 commit comments

Comments
 (0)