My experience with Preact
& Web Development
What is Preact?
- Preact is a 3KB alternative to React with the same API (compared to React's v15 ~80KB gzipped, React v16 ~40KB)
Differences to React
- Doesn't have Synthetic Event System - uses browser's native event handling
- Follows the DOM specification more closely (Eg: className in React vs class in Preact)
- Doesn't have PropType validation
- Preact-compat : Compatibility layer to use react based modules (includes PureComponent, memo, Portals etc)
Author
GitHubWeb