moomood

  • 홈
  • 태그
  • 방명록

array 1

[Redux] createStore part 2 배열 사용해보기

이전에 했던 것과 같이 import를 해준다. import { createStore } from "redux"; state값을 배열로 초기화 해준다. 여기까지는 특별할 것이 없다. const reducer = (state = [], action) => { return state; } const store = createStore(reducer); action을 통해 state 값을 변경해 줄 것인데 여기서 일반 string이나 number 형식과 차이가 발생한다. 중요!!! state의 값은 read only 이다. state의 값을 직접 변경해서는 안된다. XXXXXXXXXXX state.push() XXXXXXXXXXX 와 같은 작업을 해서는 안된다. 절대로! const reducer = (state..

FrontEnd/Redux 2023.03.09
이전
1
다음
더보기
프로필사진

moomood

  • 분류 전체보기 (24)
    • BackEnd (5)
      • Spring Boot (3)
      • JAVA (2)
    • FrontEnd (18)
      • JavaScript (1)
      • Vue (1)
      • React (4)
      • React Native (7)
      • TypeScript (2)
      • Redux (2)
    • 데이터베이스 (1)
      • mssql (1)

Tag

Spring Boot, TypeScript, 행합치기, Java, Redux, row합치기, 해시모드, createStore, MySQL, api요청, 스프링부트, TLS10, TLS 오류, touchable, expo, 브라우저DB, ts-check, Pressable, react native, react,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/06   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바