- npm init -y
- npm i react react-dom
- npm i webpack webpack-cli webpack-dev-server --save-dev
- npm install @babel/core babel-loader @babel/preset-react @babel/preset-env --save-dev
- npm install html-webpack-plugin --save-dev
- npm run start
- npm run build
- npm install --save-dev style-loader css-loader
-
refer another useRef scenarion in bookmark component.
-
issue 1. toggle is not working for bookmark
-
webpack error MIME type ('text/html') is not executable,
-
to fix this error -> publicPath added in output obj webpack config
https://www.youtube.com/playlist?list=PLIGDNOJWiL182w2gKS5TsDuO6PZkJa0tK
- Jest is a testing framework which provides assertions, mocking etc..
- act and wait for usecase - https://medium.com/@AbbasPlusPlus/act-and-waitfor-react-testing-library-dba78bb57e30 https://davidwcai.medium.com/react-testing-library-and-the-not-wrapped-in-act-errors-491a5629193b