ReactJs error in Laravel ‘classProperties’ isn’t currently enabled

Solution:
Make sure your .babelrc file is in the root folder of your application, and add the following code:
{
“plugins”: [“@babel/plugin-proposal-class-properties”]
}
Run npm install –save-dev @babel/plugin-proposal-class-properties.