I want to use the new features of es2020 in my react app.
Tried to install npm install --save-dev babel-preset-es2020
and added .babelrc
file with
{
"presets": ["es2020"]
}
However it still doesn't work. How to set up the new features of es2020 with a react app?
try to change in the tsconfig.json
file the target to "target": "ES2019"