4 ms·
JSX without React is also kind of fun: https://medium.com/@victor.dramba/can-you-do-jsx-without-react-88fb26b4e349 https://medium.com/@victor.dramba/can-you-do-
by peterleiser 2y ago
JSX without React is also kind of fun: https://medium.com/@victor.dramba/can-you-do-jsx-without-react-88fb26b4e349 https://medium.com/@victor.dramba/can-you-do-jsx-without-rea... and it's working example at: https://github.com/dvictor/jsx-no-react/blob/master/index.tsx https://github.com/dvictor/jsx-no-react/blob/master/index.ts...
- danielvaughn 2y agoYeah this is essentially what I'm doing. Though I'm fighting with rollup in the process. Might drop down to ESBuild if I need it.
- i_like_robots 2y agoAgreed! About 5 or 6 years ago I wrote a library to demonstrate to my teams that JSX a) was not magic b) not limited to React. After that was done I became a little obsessed with making the library the fastest JSX renderer - which I think is still true: https://github.com/i-like-robots/hyperons https://github.com/i-like-robots/hyperons
- cnity 2y agoAdd me to this club of JSX hackers: https://crwi.uk/posts/hiccup/ https://crwi.uk/posts/hiccup/ I used this approach to make a syntax highlighted text editor in < 5kb of JS: https://crwi.uk/experiments/text-editor/ https://crwi.uk/experiments/text-editor/
- danielvaughn 2y agoThese are awesome (both parent comments). Love seeing that I'm not alone in my JSX curiosity.
- cnity 2y agoWith our powers combined we can reinvent the tiny fun internet.
- i_like_robots 2y agoVery cool - reminded me of https://github.com/creationix/dombuilder https://github.com/creationix/dombuilder which I have... memories of. Shout out too to https://microjs.com/ https://microjs.com/ for allowing me to relive some nostalgia.
- cnity 2y agoEverything becomes Lisp in the end.