Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Show HN: React, declaratively define custom event data
(opens in new tab)
(github.com)
1 points
thenewvu
8y ago
4 comments
Save
Share
4 comments
3 comments · 1 top-level
top
newest
oldest
fiatjaf
8y ago
· 2 in thread
I don't like your solution (although it is better than your description of the current use-case). I prefer to use:
onClick (e) { this.doSomething(data) }
thenewvu
OP
8y ago
Yeah .. it's (the package) totally an opinionated solution, but hey .. why do you prefer imperative than declarative? Just want to hear your opinion, I'm open to any idea.
fiatjaf
8y ago
I would prefer declarative if I didn't need to install a package. Every dependency is a burden.
1 more reply
j
/
k
navigate · click thread line to collapse