Answers about react
Questions and answers from the Croct community about react.
Strapi backend with a plain React SPA, which Croct SDK and how do I avoid the flash?
our content lives in Strapi and the storefront is a plain React app on Vite, no Next anywhere in the stack. i want to add Croct for personalization but i keep…
useContent in our Remix + Sanity app blanks the component then swaps, expected?
We are on Remix 2.15 with @croct/plug-react 2.x, and the hero content is authored in Sanity. I wrapped our Sanity-driven hero in useContent('home-hero')…
Croct React SDK throws about client logic during SSR in our custom server rendering
We have a hand-rolled Express SSR setup (fintech, so migrating frameworks is not quick) and rendering components that use Croct hooks on the server throws the…
VWO edits on our Storyblok React site keep getting wiped by re-renders
Our marketing team built a couple of tests in VWO's visual editor on our Storyblok-powered React site. The symptom is consistent: the edited headline or…
Two-person team drowning in self-hosted GrowthBook maintenance, what do React shops actually run?
CTO of a two-person startup. We self-host GrowthBook because it seemed free, and in a sense it is. The Docker stack, the warehouse plumbing, and the…
Moving off client-side flags because of control flash in our React SPA, does a SPA even avoid this?
I do CRO at an agency. We ran an experiment for a client through PostHog feature flags in their React SPA and users visibly got the control for a beat before…
Users log into two accounts in two tabs and their sessions bleed together
B2B app, support agents routinely open two customer accounts side by side in separate tabs. Our support team can reliably reproduce cross-account…
VWO visual editor keeps breaking on our Sanity + React site, is this fixable?
Hello, I would appreciate advice on a recurring problem. Our stack: Sanity v3, React 18.2, Vite build with CSS modules. Marketing runs tests with the VWO…
Best practice for choosing server-side vs client-side content rendering?
I am standardizing a Next.js starter template for our agency and want to settle on a sensible default before we roll it out across client projects. Croct…
Using useEvaluation as a feature flag in React, how do I handle failures safely?
I'm gating a new checkout flow behind useEvaluation in a React SPA. Two questions before this goes live: What should the component render while the query is…
Prerendered React pages flash empty slots before hydration, can I inline initial content?
we prerender our marketing pages with react-snap style tooling and the Croct slots come out empty in the static HTML, then pop in after hydration. Looks bad…
VWO visual edits on our Storyblok React frontend keep getting reverted, is this fixable?
We run Storyblok as CMS with a React frontend, and VWO runs client-side with edits made in the visual editor. Repro: open a page with an active variation,…