I'm an experienced Rails and Javascript developer, but new to React.
It took me hours to set up babel because it would not parse the JSX syntax. The problem was that the authors neglected to mention the .babelrc file, which needs to live in the app directory; once I added it, the translation from JSX to JS worked fine.
The file needs to contain, at minimum, the following text:
{
"presets": ["react"]
}
|