지난 번 작성했던 git & github 게시글는 나만의 프로젝트를 업로드하는 방법이였다.
이번 게시글은 팀 프로젝트를 위한 방법이다. CRA setting 부터 스텝바이스텝으로 정리해보고자 한다🤓
1) CRA 설치
npx create-react-app project-name
2) React Router 설치
3) Sass 설치
4) .eslintcache 파일 .gitignore에 추가
import React from 'react';
import {
BrowserRouter as Router,
Switch
Route,
} from 'react-router-dom';
import Component-name from 'Component-url';
class Routes extends React.Component {
render() {
return (
<Router>
<Switch>
<Route exact path="/" component={Component-name} />
</Switch>
</Router>
)
}
}
export default Routes;r
To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at.
By default, npm install will install all modules listed as dependencies in package.json.
첫 세팅에서 겪은 시행착오를 몇가지 정리해보자면,