프로젝트 압축할 때 node_modules 용량이 커서 시간이 오래 걸릴 수 있다.
그럴 땐 그냥 node_modules 삭제하고 압축한 뒤에 다운받은 사람이 프로젝트 열어서 npm i 명령어만 실행하면 다시 설치된다!
{testArr
.filter(function (item) {
return item !== "오이";
})
.map(function (item) {
return <div className="component-style">{item}</div>;
})}
이런식으로 함수 리턴값에 다시 함수 쓸 수도 있다.
리액트 재밌는듯 어려운듯~