I don't know whether this is possible in React or not as I am a novice React developer. What I want is to call a function when the attribute (data-link) of my input element changes. I use componentDidUpdate but it triggers whenever any component changes.
I just want to call componentDidUpdate whenever there is any change in the specific attribute of a specific element.