this is a webpack plugin, when you require .jsx file, warning you~
npm i --save-dev warning-require-jsx-file
and then in your webpack file
var checkJSXFile = require('check-jsx-file');
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new checkJSXFile(),
new webpack.NoErrorsPlugin()
]