I have 4 buttons and upon clicking the button a component is called where I show different data based on which button was clicked.
For the first time when I click the button, that component's constructor and componentWillMount() function is called but after that, It's not called until I refresh the page or navigate to different page and come back.
So, Is there any way to call the component's componentWillMount() function or constructor each time that particular component is called?
I am not attaching code as the question is pretty straight-forward.