Skip to content

chinsun9/go-home-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

57 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

go home time

  • typescript react๋กœ ๋งŒ๋“ค์–ด๋ณธ ํ‡ด๊ทผ์‹œ๊ฐ„ ๊ณ„์‚ฐ๊ธฐ

๋ฐ๋ชจ

์‹œ์—ฐ์˜์ƒ

๊ธฐ๋Šฅ

๋ฉ”์ธ ํŽ˜์ด์ง€

  • ๋ชฉํ‘œ ์‹œ๊ฐ๊นŒ์ง€ ๋‚จ์€ ์‹œ๊ฐ„ ๊ณ„์‚ฐ
  • url param์„ ํ†ตํ•ด ๋ชฉํ‘œ ์‹œ๊ฐ ์„ธํŒ…
  • ๋ชฉํ‘œ ์‹œ๊ฐ์ด ์ง€๋‚˜๋ฉด ํ‡ด๊ทผํ•˜๋ผ๋Š” ๋ฉ”์‹œ์ง€๋ฅผ ๋›ฐ์›€

start/n ํŽ˜์ด์ง€

about ํŽ˜์ด์ง€

  • ๋งํฌ ๊ณต์œ  ๊ธฐ๋Šฅ
  • ํ‡ด๊ทผ ์‹œ๊ฐ„ ์„ค์ • ๊ธฐ๋Šฅ
  • ์ž๋™ ํด๋ฆฝ๋ณด๋“œ ๋ณต์‚ฌ

๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€ spa ์„ธํŒ…

๋ฐฐ๊ฒฝ์ด๋ฏธ์ง€

project setup command

// cra(ts), eslint, prettier, airbnb style

// redux
yarn add redux react-redux @types/react-redux

// typesafe-actions
yarn add typesafe-actions

// gsap
yarn add gsap

// react-router-dom
yarn add react-router-dom
yarn add @types/react-router-dom

// moment
yarn add moment

// gh-pages
yarn add gh-pages

ํ•ด๊ฒฐํ•œ ๋ฌธ์ œ๋“ค

gsap ์ ์šฉ์•ˆ๋จ

import { Power3, TimelineLite } from 'gsap';
import CSSPlugin from 'gsap/CSSPlugin'; // ์ถ”๊ฐ€

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const C = CSSPlugin; // ์ถ”๊ฐ€
  • ๋กœ์ปฌ์—์„œ๋Š” ์• ๋‹ˆ๋ฉ”์ด์…˜์ด ์ž˜ ์‹คํ–‰๋˜์—ˆ๋Š”๋ฐ, ๋นŒ๋“œ ํ›„ ์• ๋‹ˆ๋ฉ”์ด์…˜์ด ์•ˆ ๋‚˜์˜ค๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ