I think there's problem with React.memo example. Change determination function should be like the following instead... return nextProps.value !== prevProps.value
Not like the following... return nextProps.value === prevProps.value
Because it should re-render only when old value not equal to new value
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think there's problem with React.memo example. Change determination function should be like the following instead...
return nextProps.value !== prevProps.valueNot like the following...
return nextProps.value === prevProps.valueBecause it should re-render only when old value not equal to new value