강의

멘토링

커뮤니티

Inflearn Community Q&A

jys's profile image
jys

asked

Practical React Programming

Reducer, Store

createRuducer질문

Written on

·

299

0

[ADD]: (stateaction=> { }
이런코드일때 ADD라 안쓰고 왜 [ADD]라 쓰는건가용 ?
reactredux

Answer 2

1

landvibe님의 프로필 이미지
landvibe
Instructor

안녕하세요
속성 이름에 대괄호를 사용하는 문법을 computed property names 라고 부릅니다
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer#Computed_property_names

아래 결과를 보시면 이해하실 수 있을거에요

0

jys님의 프로필 이미지
jys
Questioner

아항 감사합니다 선생님 ~

jys's profile image
jys

asked

Ask a question