Compare client and server discoverability
Discoverability is a delivery property
Search engines need to discover a URL, fetch its response, interpret its content and decide whether to index it. These are separate steps. Google can execute JavaScript, but this adds another stage and does not guarantee inclusion; other crawlers have different rendering capabilities. React is neither an indexing service nor an automatic barrier to indexing. A public guide should have its own stable URL, a meaningful heading, readable text and descriptive links. A private dashboard should instead enforce access on the server.
Compare rendering choices
Client-side rendering (CSR) typically delivers a shell and then obtains content in the browser. Server-side rendering (SSR) sends request-specific HTML; static generation (SSG) prepares HTML ahead of time. Both can deliver useful content before the client bundle runs. SSR adds server work and caching complexity; SSG needs a refresh strategy when content changes. Hydration can add interaction to either. For a small public seed library with stable articles, SSG is a reasonable proposal; keep account tools client-driven behind server authorization. None guarantees ranking. A missing article should produce an HTTP 404 from the hosting layer; showing a not-found component inside a 200 response does not change that status.
// A closed catalogue of public routes; this is not an HTTP server.export const pages = [ {path:'/guides/seed-storage', title:'Store seeds in dry containers', description:'Keep seeds dry and label the container.', locale:'en', published:true}, {path:'/guides/seed-labels', title:'Label seed containers', description:'Record the plant name and collection date.', locale:'en', published:true}, {path:'/guides/draft', title:'Unreleased guide', description:'Draft', locale:'en', published:false}];export function resolvePage(path) { const page = pages.find(p => p.path === path && p.published); return page ? {status:200,page} : {status:404,page:null};}import React from 'react';import {pages} from './routes.mjs';export default function GuideIndex() { return <main><h1>Seed library guides</h1><ul> {pages.filter(p => p.published).map(p => <li key={p.path}><a href={p.path}>{p.title}</a></li>)} </ul></main>;}The index shows two descriptive links, with no draft link. The browser can follow an anchor with an href even without custom click logic. A router Link that renders a genuine anchor is also appropriate. A button or a click handler alone is not a substitute for navigation. The JSX is a staged component and assumes the route table in the adjacent module.
import {resolvePage} from './routes.mjs';for (const path of ['/guides/seed-storage','/guides/draft','/missing']) { const result = resolvePage(path); console.log(path, result.status, result.page?.title ?? 'Not found');}The first guide resolves with 200 and its title; the draft and unknown path resolve with 404. These values are decisions for the server adapter, not actual HTTP responses. The public data in this fixture is synthetic; real private drafts must never be embedded in the public client bundle. Exercise: compare a direct visit, internal navigation and disabled JavaScript for the public guide. See Chapter 39 for rendering and Chapter 56 for hosting.