Replies: 4 comments 10 replies
-
Oh and another issue that I think no JSX system can solve elegantly; you can't use AlpineJS tags like This might tip the scales back in Edge's favour! |
Beta Was this translation helpful? Give feedback.
-
About Kita, I would also say that one of the problems is the lack of API Context. They recommend using Async Local Storage to avoid props drilling, but async local storage has a fairly significant impact on performance. also, I wanted to recommend maybe trying https://github.com/ncpa0/jsxte/. I haven't tried it, but they do have a Context API. |
Beta Was this translation helpful? Give feedback.
-
About Kita requiring explicit XSS checks. I have asked @arthurfiorette in his Discord why it is that way and could we make it "safe" by default. But doing so creates some issues. Here is his answer:
About the Context API, maybe we can try something and make KitaJS better. ALS creates a drop of performance, but it all depends on the application you are building. Also, ALS will become faster in some Node.js version because they are rewriting and improving the API. JSXTE has a Context API, but I don't like that I have to write all my components who needs access to it inside a render function. |
Beta Was this translation helpful? Give feedback.
-
This may sound crazy yes, but after extensive use of the Even with this, I'll be implementing a ghtml like syntax for kita, which is safe by default but requires a |
Beta Was this translation helpful? Give feedback.
-
I am experimenting with AdonisJS and like others have been trying to get JSX working in some capacity. I do quite like Edge, but the lack of type checking and Prettier formatting made me want to consider more options.
Thus far, I have had pretty bad luck. Every option seems to have major tradeoffs
key
, which has no value in the context of pure single render static HTML output.className
support, both of which make Tailwind best practices unwieldy.Things I have yet to try but don't have high hopes for...
I don't suppose anyone has suggestions to work around the issue, or more JSX frameworks to try? In my hand the ideal set of features is:
onclick: string
)class
toclassName
(because props destructuring is a pain otherwise)Otherwise I might have to start cobbling something together 😄
Beta Was this translation helpful? Give feedback.
All reactions