Why are variables in react all constants?


#1

I have noticed that if I do not define the variable as a constant the code will fail. Is this a convention in react to make all variables containing jsx expressions constants? Or is this simply a bug in code academy. Could someone explain why you would have to define the variables as constants?

Thanks,

Jared


#2

This may not directly answer your question, but it should shed some light…

https://itnext.io/why-i-dont-like-immutablejs-in-react-f1d2fd03230e


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.