In JSX, the HTML attribute class is replaced with ________.
- class
- className
- classTag
- cssClass
In JSX, the HTML attribute class is replaced with className. This is because class is a reserved keyword in JavaScript, and JSX is a JavaScript extension. To apply CSS classes to JSX elements, you should use className instead of class.
Loading...
Related Quiz
- In GraphQL, when you want to get real-time data updates, you would use a ________ instead of a regular query.
- What are uncontrolled components?
- When animating route transitions in a React application, which component from 'react-router-dom' is commonly used to manage the different routes?
- When integrating third-party authentication systems, the token received after a successful authentication is often called a(n) ________ token.
- What is the proper placement for error boundaries?