UU
Unknown User982d ago
C
Calego982d ago
1.5 hours before work I can at least see how crazy this is
UU
Unknown User982d ago
C
Calego982d ago
right! "all jsx is" is a render engine just like handlebars.
C
Calego982d ago
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.
C
Calego982d ago
mmm... is this what i'm looking for?
C
Calego982d ago
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...
C
Calego982d ago
this maybe
UU
Unknown User982d ago
C
Calego982d ago
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 yeah
UU
Unknown User982d ago
C
Calego982d ago
is React's JSX really baked in? they don't have a library for this??
UU
Unknown User982d ago
C
Calego982d ago
link me, i'm failing to find react-jsx
UU
Unknown User982d ago
C
Calego982d ago
oh what's preact and is that the answer to all our woes?
UU
Unknown User982d ago
C
Calego982d ago
oh standard JSX is ... transpiled into hyperscript? wtf ugh
UU
Unknown User982d ago
C
Calego982d ago
alright we tryin nanoJSX
UU
Unknown User982d ago
C
Calego982d ago
GitHub
GitHub - hyperhype/hyperscript: Create HyperText with JavaScript.
Create HyperText with JavaScript. Contribute to hyperhype/hyperscript development by creating an account on GitHub.
C
Calego982d ago
I might vomit
UU
Unknown User982d ago
C
Calego982d ago
var h = require('hyperscript')
h('div#page',
h('div#header',
h('h1.classy', 'h', { style: {'background-color': '#22f'} })),
h('div#menu', { style: {'background-color': '#2f2'} },
h('ul',
h('li', 'one'),
h('li', 'two'),
h('li', 'three'))),
h('h2', 'content title', { style: {'background-color': '#f22'} }),
h('p',
"so it's just like a templating engine,\n",
"but easy to use inline with javascript\n"),
h('p',
"the intention is for this to be used to create\n",
"reusable, interactive html widgets. "))
var h = require('hyperscript')
h('div#page',
h('div#header',
h('h1.classy', 'h', { style: {'background-color': '#22f'} })),
h('div#menu', { style: {'background-color': '#2f2'} },
h('ul',
h('li', 'one'),
h('li', 'two'),
h('li', 'three'))),
h('h2', 'content title', { style: {'background-color': '#f22'} }),
h('p',
"so it's just like a templating engine,\n",
"but easy to use inline with javascript\n"),
h('p',
"the intention is for this to be used to create\n",
"reusable, interactive html widgets. "))
UU
Unknown User982d ago
C
Calego982d ago
yes
UU
Unknown User982d ago
C
Calego982d ago
very yes
UU
Unknown User982d ago
C
Calego982d ago
was nano the lib you remember seeing?
UU
Unknown User982d ago
C
Calego982d ago
but hyperscript doesn't do jsx out of the box does it?
UU
Unknown User982d ago
C
Calego982d ago
gotchya, and that's what I want to avoid
UU
Unknown User982d ago
C
Calego982d ago
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...
UU
Unknown User982d ago
C
Calego982d ago
correct
UU
Unknown User982d ago
C
Calego982d ago
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
UU
Unknown User982d ago
C
Calego982d ago
right, 'string of jsx' probably not the right words
UU
Unknown User982d ago
C
Calego982d ago
aaaaahhhhhhh (╯°□°)╯︵ ┻━┻
UU
Unknown User982d ago
C
Calego982d ago
lol i just found this
UU
Unknown User982d ago
C
Calego982d ago
basically es template string things
UU
Unknown User982d ago
C
Calego982d ago
Proof of concept, this worked great ironically it needs a build step to bundle in the npm facepalmpicard I think next step here would be to make a library module make some utilities like JsxApplication, renderJsx, etc. to wrap this to the trello !
UU
Unknown User982d ago
Want results from more Discord servers?
Add your server
More Posts
react librarySo far I've seen Vue 2, Vue 3, Alpine, and Svelte pulled into Foundry. No one has yet been crazy enoweb componentsA comment @n1xx1 made over in #development-basics (https://discord.com/channels/732325252788387980/7UI element JS Classeshttps://discord.com/channels/732325252788387980/734922093967310910/882979923483037696 @wyrmisis > Imid-milestone ping feedback@dnd5e **No Action Required** Wanted to ping you to make you aware that the 1.5.0 milestone is >50%Hot ReloadingIs there a way to do something like hot module reloading/live reloading on change for Foundry?Tagger Code ReviewWould anyone be keen to code review Tagger? I'd like to git better 😄 https://github.com/Haxxer/Founsocket woesnot the socket firingpreUpdateSo for some reason ItemPF#_preUpdate changes aren't sticking.. what is PF1 doing that prevents this?mergeObject`mergeObject` is a beast of a function which lets you smash two objects together and that options arselect in sheetAlso, is the data actually saved on the actor? You can inspect the data in the console opened with FIC 5e DocsI'm not looking to ping about this but for anyone who sees this: I'm interested to know if anyone hecustom hud elementMaybe I'm missing something simple here. I'm making my own custom hud element (NOT based on a FoundrCover@badgerwerks how does the cover application for 5e helpers work? I know you do black magic to calculGitpod WorkflowHas anyone figured out a codespaces workflow?Dynamically get Object property from user inputAnyone know how I can do this? I have an Actor (`myactor`) and I'd like to have an input box which autopublishI'm trying to use @varriount's AutoPublish, but I keep getting this error. Any ideas?https://github.symlinking foundry.js and vscodeIs this something you were able to do with vscode? I'm trying right now with both WSL2 symlinks and Releases to ChangelogI just automatically made a Changelog by going to https://github.com/arcanistzed/scs/releases and rucodespacesGo to any github repository and press `.` You'll get kicked over to a `github.dev` version of the reequipmentType bonus⚠️ Breaking Changes ⚠️ The `DND5E.equipmentTypes` type of `bonus` has been removed. Any in-world `