$ npm init
$ npm i --no-optional -D webpack webpack-cli typescript ts-loader
$ npm i -S react react-dom @types/react @types/react-dom
Add webpack config to scripts
of package.json
.
{
"scripts": {
"build": "webpack",
"watch": "webpack -w"
}
}