I posted just 2 months ago about Foxhound and how I found it pretty cool, but also curious that it was one of very few themes around that combine the WordPress JSON API and React, even though they seem like a perfect natural fit. Like a headless CMS, almost.
Since then, a few more things have crossed my desk of people doing more with this idea and combination.
Maxime Laboissonniere wrote Strapping React.js on a WordPress Backend: WP REST API Example:
I’ll use WordPress as a backend, and WordPress REST API to feed data into a simple React e-commerce SPA:
- Creating products with the WP Advanced Custom Fields plugin
- Mapping custom fields to JSON payload
- Consuming the JSON REST API with React
- Rendering products in our store
Perhaps more directly usable, Postlight have put out a Starter Kit. Gina Trapani:
People who publish on the web love WordPress. Engineers love React. With some research, configuration, and trial and error, you can have both — but we’d like to save you the work.
Here’s that repo.
WordPress + React is a post from CSS-Tricks