I click the button and the function call should change the props inside the component. Can this be done and how?
we cannot change the props means we can assign them to another value but the component won't be updated.
Also, props should not be changed, they are read-only
If you want to change then do following
video take reference from this video