3 ms·
don't hooks break the whole concept of one way data binding?
by dudefeliciano 3y ago
don't hooks break the whole concept of one way data binding?
- Osmose 3y agoNope. The binding is "one-way" in the sense that, when the component state (or props) change, the DOM is updated, but if the DOM changes, the component is not updated. Hooks are a pattern for declaring state, side effects, etc. but they don't materially change this relationship.