News for hackers. Stuff that matters.
Re:Show HN: React, declaratively define custom event data by fiatjaf on Friday August 18, 2017 @01:57PM (#15048344)
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) }
Re:Show HN: React, declaratively define custom event data by thenewvu on Friday August 18, 2017 @02:03PM (#15048388)
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.
Re:Show HN: React, declaratively define custom event data by fiatjaf on Friday August 18, 2017 @04:10PM (#15049346)
I would prefer declarative if I didn't need to install a package. Every dependency is a burden.
Re:Show HN: React, declaratively define custom event data by thenewvu on Friday August 18, 2017 @04:38PM (#15049537)
hm ... yeah, you're right.