...

/

Using a React alternative like Preact or Inferno

Using a React alternative like Preact or Inferno

We’ve been using React so far, and that’s worked great for us. React is fast, easy to use, and not that hard to understand. However, two up-and-coming frameworks promise the ease of React, but faster.

Preact looks just like React when you’re using it, but the smaller code footprint means your apps open faster. Performing fewer sanity checks at runtime also makes it faster to run. Async rendering has the potential to make your apps feel faster as well.

Inferno also promises to look just like React when you’re using it, but its sole purpose in life is to be faster. According to its maintainers, converting to Inferno can improve performance of your real-world app up to 110%.

Both Preact and Inferno have a -compat project that lets you convert existing React projects without any code modifications. Whether they remain faster than React after the new React Fiber updates remains to be seen.

As of this writing, July 2017, React Fiber is in alpha. The team is promising it’s going to be faster than current React using many of the same tricks that Preact and Inferno use. The big update everyone is looking for is the new render scheduler ...

Access this course and 1400+ top-rated courses and projects.