Hacker News new | ask | show | jobs
by samirillian 3199 days ago
Though I am a bit curious about why WordPress would need React in the first place. It's not like they're building a real-time app. Am I missing something here?
4 comments

Wordpress has a pretty good JSON api that you can use with crud operations: https://wordpress.org/plugins/rest-api/

There's also already a theme that uses React: https://themes.redradar.net/foxhound/

With those two things you could build a pretty good web app. The only thing is you'd be in WordPress land and isn't glamorous.

> Wordpress has a pretty good JSON api that you can use with crud operations: https://wordpress.org/plugins/rest-api/

FYI: this shipped in WordPress 4.7 as part of the core software, and is now available on every WordPress site. (e.g. https://www.wired.com/wp-json/)

> The only thing is you'd be in WordPress land and isn't glamorous.

We tried to shield REST API users from much of the nastiness of WordPress' backwards compatibility (inconsistent field naming, date weirdness, etc), but yeah, it's still not perfect.

(I'm the co-lead on the REST API focus, happy to answer any Qs!)

Hey, I'm not a WP user, but I'm a huge fan of the work you guys do, and the impact you have. WP has done so much to bring the power of the web to the people. No questions, just thanks. :)
Yes, that React is really convenient for building practically any type of web app, not just real-time apps, and they probably want the slick and seamless user experience they can get by building a progressive web app in React.
But they are building a real-time app![1] The new Gutenberg editor is going to be much more dynamic than the old editor.

https://wptavern.com/wordpress-new-gutenberg-editor-now-avai...

React has the largest front end ecosystem short of JQuery. And it's a great declarative way of describing UI.