Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLucas Santos
19,315 PointsReactJs + Wordpress?
Hey everyone,
As some of you may know Wordpress came out with an API not to long ago that you can make HTTP requests to and not really worry so much about the routes as they handle the backend for you.
Now the golden question is how can I mix ReactJs with Wordpress API?
This has been driving me insane because I cannot find any solid content online about this. Help is greatly appreciated, thank you!
1 Answer
Michael Liendo
15,326 PointsI actually read a blog post today about making plugins using react. The idea still seems a bit hackish to me, but there seems to be some momentum gathering around the idea. Here's a link to a blog post discussing how to create it. Hope it helps. Note that a lot of topics discussed are considered "bleeding-edge" but then again, the article is a little dated. https://lamosty.com/2015/09/07/react-single-page-wordpress-rest-api-theme-tutorial/
Lucas Santos
19,315 PointsLucas Santos
19,315 PointsHey Michael thanks for the reply really appreciate that. Although that blog post is interesting it is out dated. Wordpress has already came out with their 2nd version of the Wordpress API late 2016. So any information before that regarding their API is outdated and not a valid source. Still really appreciate the blog post, was definitely a good read. Thanks!