adspace


Is it possible to use the word class in jsx?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use events in reactjs? Give an example of using events?

564


How would you create higher order components (hocs) in react.js?

448