This is my .babelrc
:
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
Here's where the error comes from. \client\src\components\AddBook.js:
const { handleSubmit, pristine, reset, submitting } = this.props;
The error message
11 | }
12 |
> 13 | const { handleSubmit, pristine, reset, submitting } = this.props;
| ^
14 |
15 | const handleSubmit = (allValues) => {
16 | console.log('formData:', allValues);
I thought @babel/preset-env
took care of all the latest JavaScript syntax. What does make the code break?
The complete repo is on https://github.com/ElAnonimo/booklist