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?



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


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