I created a react jsx file (index.jsx) as shown below. The first line is used to import jquery library in our class.
import $ from 'jquery'
import React from 'react';
import ReactDOM from 'react-dom';
import './main.css';
import './component';
import Search from './search/search'
when I started the webpack-dev-server, I got below error:
index.jsx Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| import $ from 'jquery';
| import React from 'react';
| import ReactDOM from 'react-dom'
I have added the jquery and react dependencies on my package.json file. I wonder what I missed here.