jayspod

  • 홈
  • 태그
  • 방명록

Refactoring 1

[TIL] Refactoring using Array.fill() and const.ts

1. Array.fill을 활용해 text slide animation refactoring before import { FlowText, FlowWrap } from './style'; export const TextSlideView = () => { const text = `행복한 동네를 위한 대화의 장소 `; return ( {text} {text} {text} {text} ); }; after import { FlowText, FlowWrap } from './style'; export const TextSlideView = () => { const text = `행복한 동네를 위한 대화의 장소 `; const texts = new Array(4).fill(text); return ( {texts..

Programming 2023.08.08
이전
1
다음
더보기
  • 분류 전체보기 (70)
    • Programming (65)
    • Review (5)
      • Spend (1)
      • Movie (1)
      • Book (2)
      • Coffee (1)

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

페이스북 트위터 플러그인

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바