Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

everything is an X

1 view
Skip to first unread message

Raoul Duke

unread,
Apr 3, 2025, 6:54:04 PMApr 3
to pi...@googlegroups.com
object?
function?

looking at react code with hooks, as much as i think i like FP, i'm really sick and tired of everything being wrapped in ever more layers of indirection through anonymous arrow functions. 

i'd prefer objects methinks. grass is greener, ha ha. 

Mike Austin

unread,
Apr 3, 2025, 11:42:04 PMApr 3
to PiLuD
I like the immutability of React, but yes the hooks “DSL” on top of JS can be frustrating. I’ve been using it 
For many years now and still run into infinite updates and other strangeness. The future is about compilers doing the work instead of manually specifying useCallback, useMemo, dependencies etc. (that tools already tell you the answer).
Reply all
Reply to author
Forward
0 new messages