@babel/preset-react for typescript code example Example: @babel/preset-typescript npm install --save-dev @babel/preset-typescript