Reduce the Size of a React App in Two Lines with preact-compat

Shane Osbourne
InstructorShane Osbourne

Share this video with your friends

Send Tweet

Not every app is greenfield, and it would be a shame if existing React apps could not benefit from the micro-size of Preact. In this lesson we’ll discuss what preact-compat is, how to use it, and some examples of the file-size savings available. https://github.com/developit/preact-compat

Patrick Campbell
Patrick Campbell
~ 2 years ago

For anyone reading — the current version (Preact X) — does not need compat anymore since it is already bundled in.

https://preactjs.com/guide/v10/upgrade-guide