Hacker News new | ask | show | jobs
by baddox 2719 days ago
Yes. You need “magic” to be able to write and Reason about your programs in a functional style, while still having side effects and state that changes over time. All functional programming environments have this.
1 comments

I hardly think "not being pure functional" is what the op means by "magic"
Perhaps not, but React hooks in my opinion aren't any more magical than the other internals of React that allow you to use a function style to implement component trees that change over time.