DEV Community

Discussion on: ReactJS -- If it is setting a state with the same value, will the component be re-rendered?

Collapse
 
frankdspeed profile image
Frank Lemanschik

nope your wrong its react doing this let me explain the function component is a render function thats why it can not get called again and will not get called again the class component has a render function that can and will get called again.

Thread Thread
 
johnrobmiller profile image
John Miller

Unlike the semicolon in js, the period is NOT optional in the English language, and I don't the the devs are going to change this anytime soon...