3 ms·
This looks like something I'd like to try but I don't like JSX (TSX). Is it possible to use Fresh with Vue in place of Preact, and write Vue components that spl
by unsupp0rted 4y ago
This looks like something I'd like to try but I don't like JSX (TSX). Is it possible to use Fresh with Vue in place of Preact, and write Vue components that split HTML templates from script and style tags?
- lenkite 4y agoYes, same here. Hate JSX/TSX. Would love to have choice of templating engine so can stick to pure HTML/CSS as much as possible. I still prefer simple template engines like Mustache which respect HTML.
- rglover 4y agoYou might dig Joystick https://github.com/cheatcode/joystick https://github.com/cheatcode/joystick. Takes the compositional aspects of JSX/React but uses a very thin abstraction over vanilla HTML/CSS/JS to do it. Joystick is full-stack (UI framework directly integrated with a Node.js back-end framework) but the UI part can be used on its own.
- dsego 4y agoYou could use Oak with Eta https://oakserver.github.io/oak/ https://oakserver.github.io/oak/ https://eta.js.org/ https://eta.js.org/
- qbasic_forever 4y agoLook at Astro, it's very similar to Fresh but lets you plugin the client side framework of your choice like Vue: https://astro.build/ https://astro.build/ Sveltekit is kind of similar in style too with single file components containing a script block, HTML, styles, etc. vs. JSX style components.
- unsupp0rted 4y agoI tried to like SvelteKit but there was a ton of magic and very, very poor documentation about that magic. Perhaps it's better documented now?
- IshKebab 4y agoJust curious, why don't you like TSX? I find it much much better than HTML templates because you get actual IDE support with proper code completion and compile time type checking.