DEV Community

hg zhou
hg zhou

Posted on

why loop rendering

Dear all, I am new to React. Why does the following code generate an error message? I know this is incorrect, but I have a question: the state value count is 1 and has not changed, so why does it cause a loop rendering?

Top comments (0)