React(2)
-
alert() 를 console.log() 함수로 치환하기
// alert 는 browser 환경에 존재하는 함수 입니다. // 그로므로 node.js 환경에서는 호출시 ReferenceError: alert is not defined 오류가 발생합니다. const alert = console.log.bind(console);
2022.01.04 -
Nvm & Node.js 개발 환경 설치
OS : Linux, WSL2 sudo apt-get install curl curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash nvm install 12.14 nvm use 12.14 npm i -g yarn npm i -g serve
2021.12.19