You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, i am backend engineer professionally, doing some UI stuff for fun (i don't have a lot of experience in this topic). i came across crankjs when was looking for alternatives to react and preact, who are really ugly in their effort to be pure in some weird way...
secondly, i want to say huge thanks to the author for the crankjs, it's really bright demonstration how JSX can be implemented. but it does not satisfy me as user, so i decided to scratch something i would want to use. in few weeks i came up with deuce-x.
it is contextless implementation of JSX, it supports components with async functions and async generator functions with addition to "classical" function components. i didn't find a place for synchronous generator functions (yet?).
additionally i have added use.ts module to provide some hook-like functions which are useful for writing components.
here's list of examples of how components and those use* functions may be used. also i did some dumb (i am going to refactor it) implementation of TODO, you can look at.
you'll have to install deno to run it as it is... or port to node ¯_(ツ)_/¯
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi,
first of all, i am backend engineer professionally, doing some UI stuff for fun (i don't have a lot of experience in this topic). i came across crankjs when was looking for alternatives to react and preact, who are really ugly in their effort to be pure in some weird way...
secondly, i want to say huge thanks to the author for the crankjs, it's really bright demonstration how JSX can be implemented. but it does not satisfy me as user, so i decided to scratch something i would want to use. in few weeks i came up with deuce-x.
it is contextless implementation of JSX, it supports components with async functions and async generator functions with addition to "classical" function components. i didn't find a place for synchronous generator functions (yet?).
additionally i have added
use.ts
module to provide some hook-like functions which are useful for writing components.here's list of examples of how components and those use* functions may be used. also i did some dumb (i am going to refactor it) implementation of TODO, you can look at.
you'll have to install deno to run it as it is... or port to node ¯_(ツ)_/¯
thanks!
alex
Beta Was this translation helpful? Give feedback.
All reactions