Answer the question
In order to leave comments, you need to log in
Why is a functional component re-rendered without changing the state and props?
Example
The first time the button is clicked, the state is set, which does not change in the future. But with repeated clicks, the component is rendered one more time and only once. Why is this happening?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question