Replies: 6 comments 16 replies
-
Other people can probably answer better, but I believe the choice of Preact has something to do with it's smallness and it's ability to operate in the isolated islands that Fresh is built on. When using React, I think you often need the compiler, and the build toochain and all of this extra tooling just to use it, but with Preact you can insert it into just one component on you page to get some client-side reactivity. So it fits well for both the island and the no-build-step nature of Fresh. Related ( short ) discussion: #598. Also, from what little I've seen, Preact is extremely compatible with many react components, so it kind of inherits a lot of useful ecosystem compatibility from React. |
Beta Was this translation helpful? Give feedback.
-
Because Preact is excellent. It strikes a great balance between size, usability, simplicity, familiarity and customisability. |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, what makes you say this? A particular write up or survey? While NPM download counts are hardly the most scientific of values, Preact is solidly in fourth when it comes to JS framework usage (behind React, Vue, and Angular), and has been growing pretty quickly (up 2.25x for the year). I totally get that, even if we say growing downloads == growing user numbers, that doesn't necessarily mean a growth in market share, but it should be more than popular enough to keep its ecosystem going. |
Beta Was this translation helpful? Give feedback.
-
Let's the data say for itself https://krausest.github.io/js-framework-benchmark/current.html Anyway, I did try |
Beta Was this translation helpful? Give feedback.
-
I know preact is excellent, but what if i just want to use native react ? Some react-based libs such as framer-motion could not run well in preact. It would be better if users could freely choose react or preact |
Beta Was this translation helpful? Give feedback.
-
Quoting @marvinhagemeister from discord discussion:
Two talks of @lucacasonato about Fresh:
I also make this as a PR: b7408a3 |
Beta Was this translation helpful? Give feedback.
-
I guess this is kind of a mean question, but I am qurious:
From what little I know about Preact, it is not particularly widely used and its market share doesn't seem to be growing either, so why use it as the basis of a new web framework?
Beta Was this translation helpful? Give feedback.
All reactions