Live data from Hacker News

Show HN: React, declaratively define custom event data

github.com

1–5 of 5 posts

Re: Show HN: React, declaratively define custom event data

#3
post #2

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) }

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

#4
post #3
post #2

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) }

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.

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

#5
post #4
post #3

Earlier quoted context omitted.

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.

I would prefer declarative if I didn't need to install a package. Every dependency is a burden.

hm ... yeah, you're right.