Preact vs React

Preact is an implementation of the virtual DOM and an alternative to react. Unlike React, it’s only 3KB in size, and it also outperforms it in terms of speed. It was developed by Jason Miller.
Benefits and drawbacks of using Preact
- Preact is lightweight (only 3KB)
- and is faster than React.
- and has the same ES6 API as React.
- It has good documentation and examples available on its website.
- and it does not have createClass.
- But React is backed by a huge company, Facebook.
- and React has a Large community.
- and React used on Facebook’s website, which has millions of visitors worldwide.
So when should we use Preact?
Consider using Preact whenever the project is small-scale and does not have complexity.
ReactPreactJavaScriptComparisonProgramming