From 1f10e25bd99bc9be3e8882893baf66aad723e0ed Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 3 Mar 2023 04:26:30 -0800 Subject: react-dom/server@next --- bench/react-hello-world/react-hello-world.jsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bench/react-hello-world/react-hello-world.jsx') diff --git a/bench/react-hello-world/react-hello-world.jsx b/bench/react-hello-world/react-hello-world.jsx index 9cb1d4165..eac44d266 100644 --- a/bench/react-hello-world/react-hello-world.jsx +++ b/bench/react-hello-world/react-hello-world.jsx @@ -1,10 +1,9 @@ // to run this: -// bun --jsx-production react-hello-world.jsx +// NODE_ENV=production bun --jsx-production react-hello-world.jsx -// This will become the official react-dom/server.bun build a little later -// It will be the default when you import from "react-dom/server" -// That will work via the "bun" package.json export condition (which bun already supports) -import { renderToReadableStream } from "../../test/bun.js/react-dom-server.bun"; +// Make sure you're using react-dom@18.3.0 or later. +// Currently that is available at react-dom@next (which is installed in this repository) +import { renderToReadableStream } from "react-dom/server"; const headers = { headers: { "Content-Type": "text/html", -- cgit v1.2.3