From 46d1d61652c027de7643c2a6dc0344f1b21a1ee1 Mon Sep 17 00:00:00 2001 From: Szymon Dolnik Date: Tue, 2 Jun 2026 12:53:07 +0200 Subject: [PATCH] docs: fix SSR section framing in React integration guide --- docs/guide/integration-with-react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/integration-with-react.md b/docs/guide/integration-with-react.md index bdc7cd567..2a0820139 100644 --- a/docs/guide/integration-with-react.md +++ b/docs/guide/integration-with-react.md @@ -75,7 +75,7 @@ In development, React runs effects twice (mount → unmount → mount) to surfac ## Server-side rendering (Next.js App Router) -The component above is already SSR-safe — the engine is constructed in `useEffect`, which never runs on the server. If you still want to skip the initial bundle on the server (it is a few hundred kB), wrap it in a client-only dynamic import. +The component above is already SSR-safe — the engine is constructed in `useEffect`, which never runs on the server. If you still want to keep HyperFormula out of the initial JS bundle sent to the browser (it is a few hundred kB), wrap it in a client-only dynamic import. In the App Router, `dynamic(..., { ssr: false })` is only allowed inside a client component. Put the dynamic call in a `'use client'` wrapper and import the wrapper from your server page: