In JSX why you can't use "class" word?
In JSX, you can't use the word class. You have to use className instead because JSX gets translated into JavaScript, and class is a res...

https://www.interviewquestionspdf.com/2017/01/in-jsx-why-you-cant-use-class-word.html
In JSX, you can't use the word class. You have to use className instead because JSX gets translated into JavaScript, and class is a reserved word in JavaScript.