A ReactJS template which would help to start frontend development quickly without doing any setup on your own.
- Webpack, Webpack CLI, Webpack dev server
- Babel loader, babel presets
- React, React DOM
-
Install babel related packages
npm install -D @babel/core babel-loader @babel/preset-env @babel/preset-react
-
Install webpack related packages
npm install -D webpack webpack-cli webpack-dev-server html-webpack-plugin
-
Install TypeScript & ts-loader
npm install -D typescript ts-loader
-
Execute
npx tsc --init
to addtsconfig.json
with basic TS configs -
Install dev dependencies -
@types/react
,@types/react-dom
to have TypeScript types for React and React DOMnpm i -D @types/react @types/react-dom