Create hello world React app with hot module replacement

This commit is contained in:
2017-06-19 19:20:38 +00:00
parent 5f57586a7f
commit 888eff91d8
8 changed files with 105 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
const express = require('express')
const app = express()
app.use('/', express.static('dist'))
app.get('/hello', function (req, res) {
res.send('Hello World!')
})
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
})