Create-react-app: support jsx-control-statements

Created on 10 Oct 2016  ·  2Comments  ·  Source: facebook/create-react-app

Personally, the only use I've found for eject commands so far is is to add the jsx-control-statements support.

It would be nice if it would be supported by default, with the eslint-plugin-jsx-control-statements as well.

If it seems a good idea, I can try to do a pull request

Most helpful comment

Hi, thanks for the suggestion. We won't be adding any plugins that extend JSX behavior with something that isn't overwhelmingly adopted in the ecosystem. This makes people new to React confused about what exactly JSX is, and which features come “out of the box”. For example we don't want somebody using Create React App posting a StackOverflow answer using this syntax, and other people being unable to run it. I hope this helps, even if this isn't what you wanted to hear, sorry!

All 2 comments

Hi, thanks for the suggestion. We won't be adding any plugins that extend JSX behavior with something that isn't overwhelmingly adopted in the ecosystem. This makes people new to React confused about what exactly JSX is, and which features come “out of the box”. For example we don't want somebody using Create React App posting a StackOverflow answer using this syntax, and other people being unable to run it. I hope this helps, even if this isn't what you wanted to hear, sorry!

For those that found this via Google, try using https://github.com/timarney/react-app-rewired which can allow you to extend create-react-app configs

Was this page helpful?
0 / 5 - 0 ratings