I am using a conditional statement inside a ComponentDidUpdate function in a child component which is called in a parent component. How do i make sure that even if the same props are given twice it still updates.
I currently have sth like :
if (prevProps.x !== this.props.x)
however if i pass the same value twice from a parent, it does not re-render the second time as it just sees it as the same value. Any tips please?