4 ms·
Ha, just the other day I set up a wordpress site with react as the (server-side) view layer using v8js. Makes development a lot more fun.
by mercer 11y ago
Ha, just the other day I set up a wordpress site with react as the (server-side) view layer using v8js. Makes development a lot more fun.
- firasd 11y agoInteresting. I definitely want to experiment with something like that. Most examples I've seen of a WP theme in React (e.g. https://github.com/Automattic/Picard https://github.com/Automattic/Picard) use the new WP API and a node.js app. So there are (at least) two potential approaches to this.
- mercer 11y agoYeah, I considered that, and in some cases might take that approach. But in my particular case the websites need to be server-side for SEO, so it's mostly just that I want to use React for reusability and because I prefer it over wordpress theming with php tags. Furthermore, I can now use React and still deploy the site on a typical LAMP-stack cheap hosting!