UNPKG
cra-template-node-express
Version:
latest (0.6.8)
0.6.8
0.6.6
0.6.4
0.6.0
0.4.9
0.4.8
0.4.6
0.2.2
0.2.0
0.1.0
You can use the template using the below command.
cra-template-node-express
/
template
/
src
/
client
/
index.js
10 lines
(7 loc)
•
241 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ hot }
from
'react-hot-loader/root'
;
import
React
from
'react'
;
import
ReactDOM
from
'react-dom'
;
import
App
from
'./App'
;
import
'./index.css'
;
const
HotApp
=
hot
(
App
);
ReactDOM
.
render
(
<
HotApp
/>
,
document
.
getElementById
(
'app'
));