리액트 설치하기

2.생성한 파일에서 리액드 설치하기

PS C:\Users\ske40\myapp> npm –version
ERROR: npm v10.2.5 is known not to run on Node.js v14.15.1. This version of npm supports the following node versions: ^18.17.0 || >=20.5.0. You can find the latest version at https://nodejs.org/.

실행 전 추가 설치 한 부분

1.ES7+ React/Redux/React-Native snippets v4

  • rce : class componet 생성
  • rafce : allow function component 생성
  • rfce : function component 생성

2.npm install –save-dev @babel/plugin-proposal-private-property-i

생성 폴더+파일

Sidebar.jsx

HomePage.jsx

Router.jsx

App.js

구동화면

Leave a Reply

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다