5 ms·
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 `
by adamzerner 4y 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`).
- klysm 4y agoAgree, but it should be a pure function of its arguments and the state