Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 5913b58

Browse files
committed
Use *.jsx files instead of *.js for files that contain jsx
This helps text editors pick up the correct syntax highlighting
1 parent ed33003 commit 5913b58

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import App from './App';
3+
import App from './App.jsx';
44

55
ReactDOM.render(<App />, document.getElementById('react-root'));

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
devtool: 'eval',
66
entry: [
77
'webpack-dev-server/client?http://localhost:3000',
8-
'./src/index'
8+
'./src/index.jsx'
99
],
1010
output: {
1111
path: path.join(__dirname, 'dist'),
@@ -14,9 +14,9 @@ module.exports = {
1414
},
1515
module: {
1616
loaders: [{
17-
test: /\.js$/,
17+
test: /\.jsx?$/,
1818
loaders: ['babel'],
1919
include: path.join(__dirname, 'src')
2020
}]
2121
}
22-
};
22+
}

0 commit comments

Comments
 (0)