REACT Router

£€€.T.$·2023년 4월 19일
0

Setting

목록 보기
6/8

cd [폴더명] 으로 설치할 폴더를 선택 후

yarn create react-app [폴더명]


터미널에 나머지 설치 함

yarn add react-router-dom

src/index.js

import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
profile
Be {Nice} Be {Kind}

0개의 댓글