Menu

TanStack Redact: Ship Less React Without Touching Your React Code
πŸ“°

TanStack Redact: Ship Less React Without Touching Your React Code

DEV Community: reactΒ·Pushpendra YadavΒ·16 days ago
#X2w8vfDv
#devtoreact#devto#dev#redact#react
Reading 0:00
15s threshold

I've been doing frontend for about twelve years, and a big part of that has been fighting bundle size. Code splitting. Lazy routes. Swapping heavy date libraries for lighter ones. Hunting down that one dependency that pulls in all of lodash. A Webpack 4 to 5 migration done with codemods because doing it by hand across a big codebase wasn't realistic.

But there was always one chunk of the bundle nobody touched: React and React DOM themselves. You just accepted that cost. It was the floor.

TanStack Redact just lowered the floor. And the reason I think it matters isn't the clever engineering behind it (though there's plenty of that). It's how useful it is on day one.

What Redact actually is

Redact is a smaller, React-compatible runtime for the browser. You add one plugin to your build config, and your existing React imports, components, hooks and third-party libraries run on Redact in the browser instead of React DOM.

That's the whole pitch. No new API to learn. No import { h } from 'somewhere-else' .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.