Web / ReactJS Interview questions
Why is "class" attribute is "className" in React?
"class" is a reserved keyword in JavaScript. Since we use JSX in React which itself is the extension of JavaScript, so we have to use className instead of the class attribute.
More Related questions...