53 Replies
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
1.5 hours before work I can at least see how crazy this is
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
right! "all jsx is" is a render engine just like handlebars.
Nano JSX • Lightweight 1kB JSX library
Designed to build ultra fast Multi-Page Apps (MPAs), using isomorphic JavaScript. Written in TypeScript. Server Side first with partial hydration. Perfect for your next PWA. As small as svelte.
mmm... is this what i'm looking for?
GitHub
GitHub - loreanvictor/render-jsx: Tools for building JSX-based libr...
Tools for building JSX-based libraries / frameworks, also a super-thin and fast pure DOM renderer. - GitHub - loreanvictor/render-jsx: Tools for building JSX-based libraries / frameworks, also a su...
this maybe
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
I'd look to provide a replacement for "renderTemplate"
or maybe not a replacement
but like "renderJsx" and then some way to extend Application with
ApplicationJSX
yeahUnknown User•4y ago
Message Not Public
Sign In & Join Server To View
is React's JSX really baked in? they don't have a library for this??
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
link me, i'm failing to find react-jsx
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
oh what's preact
and is that the answer to all our woes?
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
oh standard JSX is ... transpiled into hyperscript?
wtf
ugh
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
alright we tryin nanoJSX
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
GitHub
GitHub - hyperhype/hyperscript: Create HyperText with JavaScript.
Create HyperText with JavaScript. Contribute to hyperhype/hyperscript development by creating an account on GitHub.
I might vomit
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
very yes
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
was nano the lib you remember seeing?
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
but hyperscript doesn't do jsx out of the box does it?
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
gotchya, and that's what I want to avoid
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
https://github.com/loreanvictor/render-jsx
Another option, looks lighter than nano
GitHub
GitHub - loreanvictor/render-jsx: Tools for building JSX-based libr...
Tools for building JSX-based libraries / frameworks, also a super-thin and fast pure DOM renderer. - GitHub - loreanvictor/render-jsx: Tools for building JSX-based libraries / frameworks, also a su...
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
correct
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
the build step feels extra, this 'should' be as simple as "take string of jsx, parse on the fly, render" ala handlebars
like surely someone has a library for that
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
right, 'string of jsx' probably not the right words
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
aaaaahhhhhhh
(╯°□°)╯︵ ┻━┻
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
lol i just found this
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
basically es template string things
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
Proof of concept, this worked great
ironically
it needs a build step to bundle in the npm I think next step here would be to make a library module
make some utilities like
JsxApplication
, renderJsx
, etc. to wrap this
to the !Unknown User•4y ago
Message Not Public
Sign In & Join Server To View