[Meteor 1.3] how to use jsx-control-statements

jsx-control-statements allow use For or If in react.
my .babelrc file:
{
“plugins”: [“jsx-control-statements”]
}

but not work…
any solution ?

Meteor doesn’t support .babelrc yet, but it is planned. However, there’s community support for this already with meteor-react-hotloader. Just check the README for detalis; if you don’t want the hotloading you can just remove the relevant plugins from your .babelrc.

1 Like