Successfully added
ASP.NET Core
by Patrik
Adding React
Install React:
npm install react react-dom --save-dev
Install the Babel preset to process React JSX code:
npm install @babel/preset-react --save-dev
Add the React preset to Babel. It will convert React (JSX) code to raw JavaScript:
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-react', '@babel/preset-env']
}
}
}
]
}
Referenced in:
Comments