React 시작.

1262 단어 frontendReactReact

💻 MacBook Air (M1) 베이스 👨🏻‍💻.

  1. Node.js 설치.
    brew install node

  2. Parent Directory에서 create-react-app. 나의 경우에는 앱 이름이 'grass-roots'.
    npx create-react-app grass-roots

  3. 앱 실행.
    npm start

  4. react-router-dom 설치.
    npm install react-router-dom

  • 배운 것.
import React, { useState } from "react";
import { BrowserRouter as Router,
        Switch,
        Route,
        Link } from "react-router-dom";

좋은 웹페이지 즐겨찾기