5 ms·
Show HN: React, declaratively define custom event data
- fiatjaf 9y agoI 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 9y agoYeah .. 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.