Inflearn Community Q&A
선생님 정말 기초적인 질문 죄송합니다 ㅠ
Written on
·
236
0
CheckBox.js 에서 8번 라인에
renderCheckBoxLists = () => props.list&& ~~
하셨는데
renderCheckBoxLists =() => {props.list&& ~~}
이렇게 블록으로 감싸니까 데이터가 안나오던데 이유좀 알수있을까요 ㅠㅠ
mongodbnodejsreactredux웹앱
Answer 2
2
괄호를 붙일거면 return 키워드 사용해야 할 것 같아요!
renderCheckBoxLists =() => { return props.list&& ~~} 요로케요
https://poiemaweb.com/es6-arrow-function 여기 화살표함수 사용법 잘 나와있어요
0






감사합니다~