When comparing w2ui vs Preact, the Slant community recommends w2ui for most people. In the question“What are the best JavaScript libraries for building a UI?” w2ui is ranked 11th while Preact is ranked 16th. The most important reason people chose w2ui is:
Any component is well documented and have an easy API to access validation, dataloading and handling user events.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Easy and clean API
Any component is well documented and have an easy API to access validation, dataloading and handling user events.
Pro Lots of components/widgets
Library contains UI components like Datagrids, Forms, Tabs, SideBars, Toolbars and more.
Pro Small library size
Only two files need to be included 1 .css and 1 .js, together they are only 365 kb.
regarding to amount of components it is very small.
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.
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.