Hacker News new | ask | show | jobs
by adamzerner 1188 days ago
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`).
1 comments

Agree, but it should be a pure function of its arguments and the state