Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX code in tutorials uses "class" instead of "className" #28

Closed
sophodoros opened this issue Dec 31, 2016 · 1 comment
Closed

JSX code in tutorials uses "class" instead of "className" #28

sophodoros opened this issue Dec 31, 2016 · 1 comment

Comments

@sophodoros
Copy link

The JSX in the react-router examples uses "class" instead of "className", and with the current version of react (15.4.1) the "class" declarations are ignored. The most obvious impact of this is on the nav bar, which is rendered as a simple list of links. Although there is an npm package named jsx-html-class that will allow the use of "class" in JSX, I don't recall seeing it mentioned during the setup/configuration portion of the tutorial.

@sophodoros
Copy link
Author

Never mind -- I should've wait until completing tutorial #8 before adding this, because it explains why "class" can be used instead of "className".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant