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

Can we use babel-plugin-react-html-attrs to use class in JSX instead of className #333

Closed
prashid opened this issue Aug 2, 2016 · 1 comment · May be fixed by rangle/create-react-app#16

Comments

@prashid
Copy link

prashid commented Aug 2, 2016

This is very useful plugin and use it frequently. Just copy and paste HTML and not to worry about changing class into className on almost all the elements in JSX.

@gaearon
Copy link
Contributor

gaearon commented Aug 2, 2016

Hi, thanks for the suggestion! I understand why you might want this but since it’s not a normal part of JSX, people will be confused by this. For example people will publish examples and tutorials but code from them will not work with non-Create React App setups. For this reason we won’t introduce this feature.

@gaearon gaearon closed this as completed Aug 2, 2016
@gaearon gaearon added the wontfix label Aug 2, 2016
@lock lock bot locked and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants