Wednesday, 15 March 2017

Unexpected token argument in render method

I'm trying to start Express.js server with react application that I downloaded, but when I do npm start on my server there is error

ERROR in ./src/app.jsx Module build failed: SyntaxError: Unexpected token (6:7)

4 | import 'react-select/dist/react-select.css';

5 |

> 6 | render(<div>Place your application here</div>, document.getElementById('app-root'));

Why would it be?



via zaebalo

No comments:

Post a Comment