Typical Patterns of Interaction between a React Frontend and a WordPress Backend

Authors

  • Karen Sarkisyan Senior Software Engineer at EPAM Systems, Inc, Belgrade, Serbia

Keywords:

headless, React, WordPress, REST API, GraphQL, SSR, SSG, ISR, JWT, webhooks

Abstract

This article reviews current practices of using React frontend with WordPress backend in a headless setup and typifies main data-transfer patterns, rendering strategies, and auth/reactivity mechanisms. Massive growth in the headless-CMS market, a leading position for WordPress, and the widespread use of React justifies this study’s relevance. The novelty of this work lies in building a three-dimensional model that integrates the data channel (REST vs GraphQL vs RPC) with rendering strategy (CSR, SSR, SSG/ISR) and authorization/update approach (Cookie + Nonce, JWT, Webhooks/Subscriptions), allowing the typical interaction patterns — over ten of them — to be classified and assessed. The significant findings indicate that REST-SPA has a minimal entry threshold due to the built-in WP-REST API but needs more caching to completely get rid of the “N+1” problem and reduce network latency; GraphQL-SPA solves aggregated request problems and also has strict typing but it adds much complexity to schema and access-control design; Next.js Solutions with SSR/ISR have both Static Generation and Incremental Updates via Webhooks or GraphQL Subscriptions. They are high performing, SEO friendly, and offer content consistency; in private scenarios, JWT authorization or request proxying is used; for headless e-commerce, CoCart is chosen; microservice REST-RPC endpoints extend platform capabilities without forking the core. This article will be helpful for architects, developers, and technical leaders choosing an optimal headless infrastructure based on React and WordPress.

References

Market, “Headless CMS Software Market Size,” Market Research Future, 2025. https://www.marketresearchfuture.com/reports/headless-cms-software-market-34090 (accessed Apr. 16, 2025).

“Demand for Headless Increases, Finds Latest Report by WP Engine,” WP Engine, Sep. 10, 2024. https://wpengine.com/blog/state-of-headless-2024/ (accessed Apr. 17, 2025).

“Comparison of the usage statistics of WordPress vs. Drupal for websites,” W3techs. https://w3techs.com/technologies/comparison/cm-drupal%2Ccm-wordpress (accessed Apr. 18, 2025).

J. W. Comeau, “Astro and Svelte rise as React evolves,” The Software House, 2024. https://tsh.io/state-of-frontend (accessed Apr. 19, 2025).

“WPGraphQL,” WordPress. https://wordpress.org/plugins/wp-graphql/ (accessed Apr. 19, 2025).

H. Hou-Sandi, “WordPress 4.7 ‘Vaughan,’” WordPress, Dec. 06, 2016. https://wordpress.org/news/2016/12/vaughan/ (accessed Apr. 20, 2025).

“Next.js,” npm, May 06, 2025. https://www.npmjs.com/package/next (accessed May 07, 2025).

M. Stemle, “The State of Serverless,” Datadog, Apr. 2023. https://www.datadoghq.com/state-of-serverless/ (accessed May 16, 2025).

S. Chatterjee, “Build durable applications on Cloudflare Workers: you write the Workflows, we take care of the rest,” Le blog Cloudflare, Oct. 24, 2024—https://blog.cloudflare.com/fr-fr/building-workflows-durable-execution-on-workers (accessed May 16, 2025).

A. Weinstein, “Navigating Web3 dynamism: Ledger’s solution to traffic spike stability with Vercel,” Vercel, 2025. https://vercel.com/blog/ledgers-solution-to-traffic-spike-stability-with-vercel solution to traffic spike stability with Vercel (accessed Apr. 21, 2025).

M. Ansari, “WordPress Market Share: How Many Websites Use WordPress in 2025?” Barn2 Plugins, Mar. 25, 2025. https://barn2.com/blog/wordpress-market-share/ (accessed Apr. 22, 2025).

“Historical yearly trends in the usage statistics of content management systems, January 2022,” w3techs. https://w3techs.com/technologies/history_overview/content_management/all/y (accessed May 16, 2025).

“State of JavaScript 2024: Usage,” Stateofjs. https://2024.stateofjs.com/en-US/usage/ (accessed Apr. 23, 2025).

“JWT Authentication for WP REST API,” WordPress. https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/ (accessed Apr. 21, 2025).

J. Harris, “Performance improvements to the REST API,” Make WordPress Core, Oct. 10, 2022. https://make.wordpress.org/core/2022/10/10/performance-improvements-to-the-rest-api/ (accessed Apr. 22, 2025).

“WP REST Cache,” WordPress. https://wordpress.org/plugins/wp-rest-cache/ (accessed Apr. 23, 2025).

“@apollo/client,” npm, Apr. 17, 2025. https://www.npmjs.com/package/%40apollo/client (accessed Apr. 24, 2025).

A. Selig, “Celebrating Innovation and Excellence: A Q&A With Art & Science,” WP Engine, Feb. 02, 2024. https://wpengine.com/blog/celebrating-innovation-excellence-art-science/ (accessed Apr. 24, 2025).

“Incremental Static Regeneration (ISR),” Vercel, 2025. https://vercel.com/docs/incremental-static-regeneration (accessed Apr. 24, 2025).

“JWT Authentication for WP REST API Plugin,” WordPress. https://wordpress.com/de/plugins/jwt-authentication-for-wp-rest-api (accessed Apr. 25, 2025).

“Headless WooCommerce Made Easy with CoCart,” WordPress. https://wordpress.org/plugins/cart-rest-api-for-woocommerce/ (accessed Apr. 25, 2025).

A. Buck, “WooCommerce vs Shopify: Market Share, Statistics and More Key Facts,” MobiLoud, Mar. 20, 2025. https://www.mobiloud.com/blog/woocommerce-vs-shopify-market-share-statistics (accessed Apr. 26, 2025).

“Adding Custom Endpoints – REST API Handbook,” WordPress Developer Resources. https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ (accessed Apr. 26, 2025).

Downloads

Published

2025-07-04

How to Cite

Karen Sarkisyan. (2025). Typical Patterns of Interaction between a React Frontend and a WordPress Backend. American Scientific Research Journal for Engineering, Technology, and Sciences, 102(1), 294–305. Retrieved from https://asrjetsjournal.org/index.php/American_Scientific_Journal/article/view/11796

Issue

Section

Articles