re: React.js Frequently Faced Problems VIEW POST

re: hi, samer i had an one question that when i was going through various tutorials for react, i found out strings in a state component were all writte...

It's just a common practice to do for strings that are supposed to be unique fixed values in a program. There is no syntax significance to this. You can use lower case values and things will still work.

In modern JS, you can use the "symbol" primitive type to provide unique values and it's a much better deal than using just strings (regardless of their case).

code of conduct - report abuse