전체 글52 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. [NodeJs] 외부패키지 사용해보기 npm : Node Package Manager Package 란? 여러 가지 모듈들의 집합 그렇다면 외부 package 도 사용할 수 있지 않을까? https://www.npmjs.com/ npm Bring the best of open source to you, your team, and your company Relied upon by more than 17 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of Java www.npmjs.com 이 페이지를 들어가서 원하는 .. 2023. 9. 8. [NodeJs] 모듈 사용 2023. 9. 8. 이전 1 ··· 6 7 8 9 10 11 12 13 다음