From c7ab09af4ec1a3099c7c9dcd5adf8df2096b4464 Mon Sep 17 00:00:00 2001 From: Tyler Dixon Date: Wed, 5 Aug 2026 12:30:17 -0700 Subject: [PATCH] docs(example): drop the concurrent mode framing from the demo entry Follow-up to #778, which removed the same obsolete premise from the README but left this copy of it. The comment told readers they need "an experimental build of React to use Concurrent mode" and linked reactjs.org/docs/concurrent-mode-adoption.html, a dead page. React 18 shipped in 2022 and concurrent mode was abandoned as a concept rather than stabilised, so the instruction could not be followed. The two commented-out react/experimental and react-dom/experimental imports existed only to serve that premise and go with it. Comments only. No active code changes, so the demo behaves identically. This removes the last reactjs.org reference in the repository. Refs #756 --- example/index.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/example/index.tsx b/example/index.tsx index 536f0242..b235b648 100644 --- a/example/index.tsx +++ b/example/index.tsx @@ -2,13 +2,12 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; /** - * Use this instead of NonConcurrentModeApp to see a ReactFire demo with Suspense/Concurrent mode enabled + * This demo renders without Suspense. To see the Suspense version instead, uncomment the + * import below and the render block at the bottom of this file. * - * You'll need to use an experimental build of React to use Concurrent mode - * https://reactjs.org/docs/concurrent-mode-adoption.html#installation + * Suspense is off by default in ReactFire and is opted into with the `suspense` prop on + * `FirebaseAppProvider`. See the Suspense section of the README. */ -// import {} from 'react/experimental' // make TS aware of experimental features -// import {} from 'react-dom/experimental' // make TS aware of experimental features // import { App as ConcurrentModeApp } from './withSuspense/App'; import { App as NonConcurrentModeApp } from './withoutSuspense/App'; import './index.css'; @@ -37,7 +36,7 @@ ReactDOM.render( ); /** - * FOR CONCURRENT MODE + * FOR THE SUSPENSE VERSION */ // ReactDOM.createRoot(rootElement).render( //