DEV Community

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

Collapse
 
anuraghazra profile image
Anurag Hazra

"This is a amazing example why react sucks" this statement is wrong!

It should be "This is an amazing example how javascript handles Objects" Or "This is an amazing example how weird js is"

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...