SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 117 JavaScript

[rust-compiler] Port OptimizeForSSR pass

Port the conditional OptimizeForSSR pass (#13) from TypeScript to Rust. The pass
optimizes components for server-side rendering by inlining useState/useReducer,
removing effects and event handlers, and stripping event handler/ref props from
builtin JSX elements. Gated on outputMode === 'ssr'. All 1724 test-rust-port
fixtures and 1725 snap --rust fixtures pass.
J
Joe Savona committed
efd5077152346f9b91d662c57b66a1257ea38e21
Parent: 6672405