Skip to content

Instantly share code, notes, and snippets.

View chiabi's full-sized avatar

jojo chiabi

View GitHub Profile
@chiabi
chiabi / private_fork.md
Created April 10, 2021 14:31 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

React Router에서 사용되는 컴포넌트에 대한 간략한 설명

BrowserRouter, HashRouter

Context의 Provider와 유사한 역할을 한다. 브라우저의 history stack 혹은 hashchange 이벤트와 연동되어있다. 아래 나오는 컴포넌트들은 전부 Context의 Consumer와 유사한 역할을 한다. (즉, 상위 Router 엘리먼트와 연동되어, 상태를 받아오거나 상태를 바꿀 수 있다.)

Link

a 태그로 렌더링되는 컴포넌트. href 역할을 하는 to prop을 통해 어떤 주소로 이동할지를 지정해줄 수 있다. 상위에서 BrowserRouter가 사용되면 history.pushState를 통해 주소를 바꾸고, HashRouter가 사용되면 location.hash를 바꾼다.

@chiabi
chiabi / db.default.json
Last active May 28, 2018 07:24
starry todo json-server db.json
{
"users": [
{
"id": 1,
"username": "fds"
}
],
"projects": [
{
"id": 1,