yysun/apprun

className="foo" vs. class="foo" in .tsx

jkleiser opened this issue · 1 comments

In your book, page 79, I read "Notice that we use className to represent the class property in JSX instead of class." That is also what one does in React. However, when I create a new SPA by doing npx apprun --init --spa, the file main.tsx that I get contains a lot of className="nav*". That made think that I could use class instead of className in other .tsx files as well, and it seemed to work. Could you please explain?

yysun commented