Re:React has grown beyond its original promise and it's caus...
by dudefeliciano on Friday February 09, 2024 @03:57AM
(#39312874)
don't hooks break the whole concept of one way data binding?
[ Parent
| on HN ]
Re:React has grown beyond its original promise and it's caus...
by Osmose on Friday February 09, 2024 @04:14AM
(#39312989)
Nope. 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.