3 ms·
If all the UI will be delegated to JS, what HTML will WP produce? An empty body while React is loading?
by teabee89 12y ago
If all the UI will be delegated to JS, what HTML will WP produce? An empty body while React is loading?
- bsimpson 12y agoIt's a service-oriented architecture. The API is not your web server. You can use something like Ambidex to render HTML from your React components on the web server, backed by your WP-API. ------ More info (in video form): https://www.youtube.com/watch?v=yaymfLj5tjA https://www.youtube.com/watch?v=yaymfLj5tjA Ambidex (one of many ways you could implement this paradigm): https://github.com/appsforartists/ambidex https://github.com/appsforartists/ambidex