4 ms·
React team seems to have realized the same thing, and their solution is to what they call React Hooks. It allows devs to write the implementation of the busines
by iamwil 6y ago
React team seems to have realized the same thing, and their solution is to what they call React Hooks. It allows devs to write the implementation of the business logic imperatively, but the calling it is effectively declarative.
The hooks are then used to split out the business logic of the app from its view.
- freeone3000 6y agoThis reminds me amazingly of writing HTML and binding JavaScript to layout to handle events.
- iamwil 6y agoIt's not quite the same. The main difference is that the data-binding is only one way, so it make the whole thing a lot easier to reason about.