jsx-loader
jsx-loader copied to clipboard
Use jsx-loader is correct and babel is wrong
loaders: [{
test: /\.js$/,
loaders: [
'babel-loader?presets[]=react'
],
exclude: /node_modules/,
}]
It is wrong.
loaders: [{
test: /\.js$/,
loaders: [
'jsx-loader?insertPragma=React.DOM&harmony'
],
exclude: /node_modules/,
}]
It is correct!