Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
adamzerner
· 3y ago · 0 comments
I've never understood why React components are considered to be pure. The output is not just a function of the props, it's also a function of the state (as in `useState`) and context (as in `useContext`).
Comments
[–]
klysm
3y ago
Agree, but it should be a pure function of its arguments and the state