React2 State 0자리는 변수가 되어야 되기 떄문에 React 모듈에서 useState를 사용해줄 것이다. useState의 메서드는 배열을 반환하고 구조화 할당을 사용한다. useState([초기값])이다. 아래와 같이 작성 하면 버튼이 잘 동작 한다. 2023. 9. 8. JSX 시작하기 npx : 설치 되어 있지 않은 패키지를 딱 한번 사용하고 싶을 때 더보기 npx create-react-app [이름] 이라는 명령어를 쳐준다. 그외 명령어들.. npm start Starts the development server. npm run build Bundles the app into static files for production. npm test Starts the test runner. npm run eject Removes this tool and copies build dependencies, configuration files and scripts into the app directory. If you do this, you can’t go back! npm i nod.. 2023. 9. 8. 이전 1 다음