From 1c1e4a96a59e6defc6700bca78539fc198afc9d2 Mon Sep 17 00:00:00 2001 From: James Pearson Date: Wed, 4 Sep 2024 09:10:13 +0100 Subject: [PATCH] Update README.md Fixed the ES6 import, as the example code did not work (contentful was undefined) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00e605ebf5..4749fc80f1 100644 --- a/README.md +++ b/README.md @@ -156,8 +156,8 @@ You can use the es6 import with the library as follows ```js // import createClient directly -import contentful from 'contentful-management' -const client = contentful.createClient( +import { createClient } from 'contentful-management' +const client = createClient( { // This is the access token for this space. Normally you get the token in the Contentful web app accessToken: 'YOUR_ACCESS_TOKEN',