JSFiddle - React, Tailwind, and code Playground

Contentful - example

by Ben Clayton

HTML

<script src="https://npmcdn.com/contentful@latest/dist/contentful.min.js"></script>

JavaScript

var client = contentful.createClient({
  // This is the space ID. A space is like a project folder in Contentful terms
  space: 'developer_bookshelf',
  // This is the access token for this space. Normally you get both ID and the token in the Contentful web app
  accessToken: '0b7f6x59a0'
});

console.log(client);
client.getEntry('5PeGS2SoZGSa4GuiQsigQu')
  .then(function(entry) {
    console.log('Entry:', entry)
  })