1

I'm learning ReactJS and I am trying to import a .jsx file . into another .jsx file.

I have added this to import a file:

import Users from "./Users";

But I am getting a SyntaxError Unexpected identifier error, can anyone point me in the right direction?

Xantium
  • 11,201
  • 10
  • 62
  • 89
Craig
  • 11
  • 1
  • 2
  • do you use webpack? – Sagiv b.g Jan 14 '18 at 22:21
  • 1
    Possible duplicate of [babel-loader jsx SyntaxError: Unexpected token](https://stackoverflow.com/questions/33460420/babel-loader-jsx-syntaxerror-unexpected-token) – Andrea Carraro Jan 14 '18 at 22:35
  • hey, Thanks for replying. I just created a mvc project and added reactjs to it. I don't know if its babel as my jsx converts into js ok. just the import statement isn't converted/replaced with converted js from the other jsx file. hope that makes sense ! – Craig Jan 14 '18 at 23:51

0 Answers0