eleventy-plugin-react icon indicating copy to clipboard operation
eleventy-plugin-react copied to clipboard

Feature: Preact support

Open kaicataldo opened this issue 4 years ago • 5 comments

In the spirit of keeping everything as light and fast as possible, we should allow for native support of Preact!

kaicataldo avatar Oct 13 '20 16:10 kaicataldo

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.

SimeonGriggs avatar Oct 13 '20 17:10 SimeonGriggs

Yeah, it could be worth expanding the scope of this plugin to eleventy-plugin-jsx at some point...

kaicataldo avatar Oct 13 '20 17:10 kaicataldo

@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!

kaicataldo avatar Oct 31 '20 00:10 kaicataldo

That's cool, love it.

SimeonGriggs avatar Nov 01 '20 19:11 SimeonGriggs

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.

kaicataldo avatar Jan 10 '22 00:01 kaicataldo