React CMS Learn how to use Cosmic JS to power content for your projects using tools you love.

React

Cosmic JS makes it easy to manage content for your React applications. Get a feel for React by taking a spin through our React Apps and check out the tutorials below.

React CMS Articles

How to Build a Cross-Platform Blog Using React Native and Node.js
How to Build a Next.js React Universal App
Build a React Universal Blog in 4 Steps  

React CMS Resources

Cosmic JS Docs
Official JavaScript Client
Cosmic JS GitHub

Examples

npm install cosmicjs --save

Then in your JavaScript file, get your content:

import Cosmic from 'cosmicjs';
const bucket = { slug: 'your-bucket-slug' };
Cosmic.getObjects({ bucket }, (err, res) => {
  console.log(res.objects);
});
React CMS