timdaub pfp
timdaub
@timdaub.eth
honestly React Hooks and JSX are so fucking annoying. Just let me use god damn JavaScript for fucks sake. All this extra magic with useEffects, new syntax and producing incompatibilities with the regular JS event loop model is soooooo confusing. I now notice because I'm using nodejs a lot where everything is consistent
12 replies
1 recast
5 reactions

Phil Cockfield pfp
Phil Cockfield
@pjc
I reckon there is a lot to be said for breaking out the meat of what's being done in clean/sane straight-up ESM. And then importing that and invoking within hooks with the least amount of actual logic in the hook itself. That isolates the incompatibility weirdness the JSX hooks bring in and makes shit more testable.
0 reply
0 recast
0 reaction