When comparing Preact vs CanJS, the Slant community recommends CanJS for most people. In the question“What are the best JavaScript libraries for building a UI?” CanJS is ranked 12th while Preact is ranked 16th. The most important reason people chose CanJS is:
CanJS supports all modern browsers and IE9+.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Lightweight
The size when gzipped is only 3kb, and performance is as good as (or even faster than) React itself.
Pro Same API as react
Avoids having to learn an entire new paradigm, and makes it easy to switch between the two libraries later on.
Pro Lots of examples and libraries
They have a bunch of examples and addon libraries.
Pro Awesome CLI
Preact CLI gives you a perfect scoring PWA out-of-the-box with no configuration.
Pro Great browser support
CanJS supports all modern browsers and IE9+.
Pro CanJS can be used with any other library
CanJS is a collection of individual libraries, each separately available as npm packages. It's easy to use just what you need.
Pro Real time support
CanJS's model layer (can-connect), support real-time updates to lists without adding any additional code.
Cons
Con Difficult to learn
You need to be good in React JS first to learn Preact. Documentation is not rich. And some of the examples given on site are not working. Developers are not much active on Stack Overflow as well.