본문 바로가기 메뉴 바로가기

Earn Trust

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Earn Trust

검색하기 폼
  • 분류 전체보기 (22)
    • React (3)
      • Webpack (1)
      • Redux (1)
    • Go (6)
    • 프로젝트 개발 (0)
    • Algorithms (13)
      • Hacker Rank (5)
      • Programmers (3)
      • Goorm Level (0)
      • Codility (0)
      • Baekjoon (5)
  • 방명록

Redux 배우기

정리가 다 되었다면 다음과 같이 폴더를 만들어 줍니다. src ├── modules └── counter ├── action ├── types.js └── index.js └── index.js └── index.js ├── App.js └── index.js 그리고 action/types.js에 reducer에서 사용할 type을 정해줍니다. // modules/counter/action/types.js export const INCREMENTED = "counter/incremented" export const DECREMENTED = "counter/decremented" action/index.js에는 action 함수와 action의 타입을 만듭니다. // modules/counter/actio..

React/Redux 2020. 12. 21. 14:27
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
Total
Today
Yesterday
링크
  • Profile
  • GitHub
  • RocketPunch
  • Notion Blog
«   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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바