jsx

WEB/React

JSX 이해하기

리액트 프로젝트 생성 리액트 프로젝트를 생성하기 위해서는 node.js의 npm이 필요하다. node.js를 설치했다면 터미널에 다음과 같이 입력한다. npm install -g yarn // 설치가 안된다면 sudo npm install -g yarn yarn create react-app hello cd hello yarn start // 타입스크립트도 프로젝트를 만들고싶다면 npx create-react-app hello --template typescript npm start 그 후, http://localhost:3000에 들어가보면, 자신의 리액트 프로젝트의 첫 화면이 나올 것이다. 그리고나서 /src/App.js 혹은 App.tsx를 보자. import React from 'react'; i..

chanwoong1
'jsx' 태그의 글 목록