Is it possible to use the word class in jsx?



Is it possible to use the word class in jsx?..

Answer / Ashish Mandal

No, in JSX the keyword 'class' should be written as 'className'. For example: `<div className='my-class'></div>`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

State the difference between React JS and React Native

1 Answers  


What is reactjs-jsx? Explain basic code snippet of jsx with the help of a practical example?

1 Answers  


What is jsx and how jsx can help applications in react.js?

1 Answers  


Where in a React component should you make an AJAX request?

1 Answers  


What is the difference between angularjs vs react.js?

1 Answers  


What is react intl?

1 Answers  


How react router is different from history library?

1 Answers  


What are the lifecycle methods going to be deprecated in react v16?

1 Answers  


What is Babel in React js?

1 Answers  


Why you can’t update props in react?

1 Answers  


What are synthetic events?

1 Answers  


What are the advantages of reactjs?

1 Answers  


Categories