Chapter 5: Using Preact as a React Alternative
by Ahmed Bouchefra
Preact is an implementation of the virtual DOM component paradigm just like React and many other similar libraries. Unlike React, it's only 3KB in size, and it also outperforms it in terms of speed. It's created by Jason Miller and available under the well-known permissive and open-source MIT license.
Why Use Preact?
Preact is a lightweight version of React. You may prefer to use Preact as a lightweight alternative if you like building views with React but performance, speed and size are a priority for you – for example, in the case of mobile web apps or progressive web apps.
Whether you're starting a new project or developing an existing one, Preact can save you a lot of time. ...
Get React: Tools & Resources now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.