• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in React JS by
Q:

Is it possible to use the word “Class” in JSX. Why or why not?

1 Answer

0 votes
by

No, it is not possible in the JSX. This is because the word “Class” is a reticent (occupied) word in the JavaScript. However, you can use you are free to use the word “ClassName”. If you use the word “Class” the JSX will be translated to JavaScript immediately.

Related questions

0 votes
asked Jul 24, 2019 in Azure by Robindeniel
+2 votes
asked Jul 24, 2019 in Azure by Robindeniel
...