V
V
Vitaly Rtishchev2019-10-22 13:03:47
React
Vitaly Rtishchev, 2019-10-22 13:03:47

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 question

Ask a Question

731 491 924 answers to any question