top | item 35190668

(no title)

adamzerner | 3 years 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`).

discuss

order

klysm|3 years ago

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