diff options
author | 2023-03-03 04:26:30 -0800 | |
---|---|---|
committer | 2023-03-03 04:26:30 -0800 | |
commit | 1f10e25bd99bc9be3e8882893baf66aad723e0ed (patch) | |
tree | 4fe544bd2fedfabf47b135cfc29c5b90b16010db /bench | |
parent | 18178b4e48b9b5b96798681a028637ebbd43f6df (diff) | |
download | bun-1f10e25bd99bc9be3e8882893baf66aad723e0ed.tar.gz bun-1f10e25bd99bc9be3e8882893baf66aad723e0ed.tar.zst bun-1f10e25bd99bc9be3e8882893baf66aad723e0ed.zip |
react-dom/server@next
Diffstat (limited to 'bench')
-rw-r--r-- | bench/react-hello-world/react-hello-world.jsx | 9 |
1 files changed, 4 insertions, 5 deletions
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", |