4 ms·
> "The framework uses Preact and JSX for rendering and templating on both the server and the client." Really nice to see Preact used here, it's a much more rat
by gavinray 4y ago
> "The framework uses Preact and JSX for rendering and templating on both the server and the client."
Really nice to see Preact used here, it's a much more rational choice than React if you were planning on using React anyways.
I set Next.js up to use Preact as the engine but it takes a bit of config work to do this and isn't an officially/OOTB supported feature.
- ZeWaka 4y agoIf you're into React but faster, there's InfernoJS, which is basically React/Preact but /even faster/: https://www.infernojs.org/ https://www.infernojs.org/
- adamredwoods 4y agoThen there's solid js: https://www.solidjs.com/ https://www.solidjs.com/
- no_wizard 4y agono hooks yet though, which limits compatibility and arguably developer experience. Preact has better compatibility - if that's something you're looking for anyway. I suspect that was part of the motivation as well. Also, Preact is 3KB full, inferno is 7.2 KB, if I recall correctly, may have also been a motivation here.