just been reading this: https://reactjs.org/docs/react-api.html#reactpurecomponent
and trying to work out when would a function not return something pure?
surely if you give a component the same props/state then it will always return the same result?