React 프로젝트 생성
기본설치가 완료되었으면 리엑트 프로젝트 생성
Terminal에서 react-app 생성
npx create-react-app app-name
Hello.js 생성
import React, { Component } from 'react';
function Hello() {
return <div>Hello React !</div>;
}
export default Hello;
App.js
import React, { Component } from 'react';
import Hello from './Hello';
import './App.css';
function App() {
return (
<Hello />
);
}
export default App;
Terminal에서
yarn start
'SPA > React.js' 카테고리의 다른 글
Component Wrapping (컴포넌트 감싸기) (0) | 2021.05.10 |
---|---|
Input value control (input 상태 관리) (0) | 2021.05.09 |
Comment (주석) (0) | 2021.05.08 |
React props 1 (0) | 2021.05.07 |
React install (0) | 2021.05.05 |
댓글
이 글 공유하기
다른 글
-
Input value control (input 상태 관리)
Input value control (input 상태 관리)
2021.05.09 -
Comment (주석)
Comment (주석)
2021.05.08 -
React props 1
React props 1
2021.05.07 -
React install
React install
2021.05.05