Vincent Tunru Profile picture
Front-end developer trying to open up access to academic research and helping out with @ToSDR. My current "boring stack": @reactjs and @typescriptlang
Oct 26, 2018 12 tweets 2 min read
Although I agree that there's a lot of magic in the hooks API, and that magic is Bad, I think there are some characteristics that alleviate these concerns for me. The first is that we should consider the amount of magic we're living with today. We're not supposed to define callback props inline. When writing event handlers, we're supposed to remember to add a constructor to our component, and to bind our callbacks to `this` in them.