Java Script. React. Ошибка
Всем привет. Осваиваю React. Стала выпадать такая ошибка.
Line 8:16: Parsing error: Unexpected token (8:16)
Скорей всего мелоч, но понять не могу что не так.
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
//import App from './App';
import reportWebVitals from './reportWebVitals';
const Header = () = {
return <h2>Hello beaches!!</h2>
}
const Field = () = {
return <input type="text" placeholder="Here" />
}
const Btn = () = {
return <button/>
}
const App = () => {
return (
<div>
<Header/>
<Field/>
<Btn/>
</div>
)
}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App/>
);