eleventy-plugin-react
eleventy-plugin-react copied to clipboard
Feature: Preact support
In the spirit of keeping everything as light and fast as possible, we should allow for native support of Preact!
Keen for this. The appeal of this plugin to me is just using JSX's (awesome) templating language to create static HTML, so the actual React-magic of this only needs a light touch.
Yeah, it could be worth expanding the scope of this plugin to eleventy-plugin-jsx
at some point...
@SimeonGriggs FWIW, I also published https://github.com/kaicataldo/eleventy-plugin-jsx. This is only for using JSX to generate static HTML, though, so not sure if the addition of Preact in it is a huge win.
Definitely seems like a good thing for this project!
That's cool, love it.
With a big focus of this project being to balance DX with performance, I do think moving to Preact is inline with the project goals. Might be worth exploring sooner rather than later! If we do want to do that, does it make sense to combine this and eleventy-plugin-jsx
into one project? I think we'd probably drop support for React and make this a more batteries-included experience.