From harness-claude
Renders React entirely in the browser for highly interactive SPAs where SEO is not required. Provides setup instructions for Vite/CRA, client routing, and code-splitting mitigations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/harness-claude:react-client-renderingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Render React entirely in the browser for highly interactive single-page applications
Render React entirely in the browser for highly interactive single-page applications
createRoot:
import { createRoot } from 'react-dom/client';
createRoot(document.getElementById('root')!).render(<App />);
index.html with a single <div id="root"> from any static host.index.html for client-side routing.Client-side rendering (CSR) sends an empty HTML shell to the browser; React builds the DOM entirely in JavaScript. The advantages are simplicity (no server) and rich interactivity; the disadvantages are slower Time to First Contentful Paint (FCP) and poor SEO.
When CSR is appropriate:
Performance concerns:
React.lazy + route-based splitting), tree-shaking, and CDN cachingVersus SSR/SSG: If public SEO matters or First Contentful Paint is critical, use a framework with SSR (Next.js, Remix) or static generation instead.
https://patterns.dev/react/client-side-rendering
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeBuilds React components and Next.js pages with server-side rendering, state management, and performance optimization. Activates automatically when React, JSX, or frontend build issues arise.
Pre-renders React components on the server for better SEO and faster initial load. Covers Next.js getServerSideProps, Remix loaders, and custom Express setups with React 18 streaming.
Builds React 19 components and Next.js 15 apps with responsive layouts, client-side state management using Zustand, and server components. Optimizes performance, accessibility, and data fetching.