Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Introducing TanStack Redact 🌴 A smaller runtime for your existing React app. Add it to your build config and ship less JavaScript without changing a single line of application code. Works with TanStack Start, Vite, Vinext, and Next.js.

167,968 Aufrufe • vor 1 Tag •via X (Twitter)

32 Kommentare

Profilbild von TANSTACK
TANSTACKvor 1 Tag

Our starter apps saved 47.0 KB with Start, 48.1 KB with Vite, 39.3 KB with Vinext, and 35.7 KB with Next.js. All emitted client JS + CSS, gzip, compared with React. Start and Vite can go smaller by disabling unused features.

Profilbild von TANSTACK
TANSTACKvor 1 Tag

Vinext and Next.js support both App Router and Pages Router, with React on the server and Redact in the browser. Redact renders synchronously, without React’s time slicing.

Profilbild von TANSTACK
TANSTACKvor 1 Tag

Redact started as a smaller React runtime for our own sites. We kept using it, and other people put it in production too. Tanner wrote about how it started and why we’re maintaining it:

Profilbild von Pablo Manjarres
Pablo Manjarresvor 1 Tag

free lunch energy

Profilbild von ⚡️
⚡️vor 1 Tag

Results after adding this to my Tanstack Start based application Pretty impressive! Great job guys 🙌

Profilbild von Ron
Ronvor 1 Tag

Preact energy

Profilbild von Pema Wangchuk
Pema Wangchukvor 1 Tag

_react.default.captureOwnerStack is not a function

Profilbild von Mauricio
Mauriciovor 1 Tag

Just use Soldid...

Profilbild von Aaron Villalpando
Aaron Villalpandovor 1 Tag

Hows this work when you use eval

Profilbild von Pratham
Prathamvor 1 Tag

@bot, send this to the Foreman and tell it to add this to the PR Agent's site and give me a before-and-after comparison with the PR.

Profilbild von vblinden
vblindenvor 1 Tag

Wild! Less JS without touching app code. I will try this on one of my Next.js projects this week!

Profilbild von Arne Wiese
Arne Wiesevor 1 Tag

Any known issues? Can I ship this to prod? 😂

Profilbild von Aziz Becha
Aziz Bechavor 1 Tag

We weren't ready for this!

Profilbild von Arne Wiese
Arne Wiesevor 1 Tag

Is @base_ui (shadcn) supported?! This the only react “lib“ I’ll actually use

Profilbild von phen
phenvor 1 Tag

Tried on a real Next.js 16.4 project. It throws at { renderToStaticMarkup } from "react-dom/server" with React version mismatch.

Profilbild von Jeff Reek
Jeff Reekvor 1 Tag

@grok how does this work?

Profilbild von laurent lahmy
laurent lahmyvor 1 Tag

Wow 🤯

Profilbild von Itay
Itayvor 1 Tag

@tannerlinsley Really nice.

Profilbild von Scott Corgan
Scott Corganvor 1 Tag

@bot is there any benefit we could get in our apps from this?

Profilbild von Jubayer
Jubayervor 1 Tag

We have an old big project on Next.js 14. Will definitely try on that and share the result. I myself tried to optimize and minimize the JS bundle as much possible. Now, let's see if Redact can help on top of that!

Profilbild von Harry 🐺
Harry 🐺vor 1 Tag

Fantastic name btw

Profilbild von Nitesh ₿⚡️
Nitesh ₿⚡️vor 1 Tag

What magic is this?

Profilbild von Aluminate
Aluminatevor 1 Tag

@grok so this is like react but bundles less JavaScript and still gives same performance and output?

Profilbild von Boardy
Boardyvor 1 Tag

know a react and next.js engineer whose whole thing is cutting js bundle size and he's shipping his own app right now. couldn't get a dm through but i can make the intro

Profilbild von Dirk Beukes
Dirk Beukesvor 1 Tag

@grok explain how this works technically

Profilbild von Rémi Wg 👉 nextjs-boilerplate.com
Rémi Wg 👉 nextjs-boilerplate.comvor 23 Stunden

Slow down a little 😅 We can’t keep up with all your awesome libraries:

Profilbild von Sandeep Miriyala
Sandeep Miriyalavor 1 Tag

Any support for next js .

Profilbild von Yaroslav Slepukhin
Yaroslav Slepukhinvor 1 Tag

rspack/rsbuild when?

Profilbild von Vishal Kacha
Vishal Kachavor 1 Tag

Nice.

Profilbild von MisterJoss
MisterJossvor 1 Tag

TanStack no falla: Query, Router, Start y ahora Redact. Recortar runtime sin tocar una sola línea de tu app es justo la dirección que necesita el ecosistema: menos JS enviado, misma experiencia. Lo probaré en cuanto pueda.

Profilbild von Laura🫣
Laura🫣vor 1 Tag

the whole point of react is shipping less to the browser and every framework keeps pretending tree shaking is enough so this actually feels like the first honest solution in a while

Profilbild von totewi
totewivor 1 Tag

@bot revísalo por favor

Ähnliche Videos