Why are variables in react all constants?

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

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

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

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