Skip to content

A WordPress plugin that shows server-side rendering of React components using PHP in SSR mode with client-side hydration using React.

Notifications You must be signed in to change notification settings

Utsav-Ladani/React-SSR-in-WordPress

Repository files navigation

WordPress x React Integration

A WordPress plugin that demonstrates server-side rendering of React components using PHP in SSR mode with client-side hydration using React.

Description

This plugin showcases how to integrate React components into WordPress with:

  • Server-side rendering using a custom PHP transpiler
  • Client-side hydration for interactive components
  • A sample To-Do List application
  • Tailwind CSS styling

Demo

React-SSR-in-WordPress-Demo.mp4

Build Instructions

  1. Install dependencies:

    npm install
  2. Build the project:

    npm run build
  3. The build process will generate:

    • Server-side PHP files in build-server/
    • Client-side JavaScript in build/

About

A WordPress plugin that shows server-side rendering of React components using PHP in SSR mode with client-side hydration using React.

Topics

Resources

Stars

Watchers

Forks