8 to 17 , 17 to 24
const [checkedList, setCheckedList] = useState([]);
const handleCheck = (e) => {
if (e.target.checked) {
setCheckedList([...checkedList, e.target.value]);
} else {
setCheckedList(checkedList.filter((val) => val !== e.target.value));
}
};
<Checkbox label="앱" value="app" checked={checkedList.includes('app')} onChange={handleCheck}/>
//전체 선택 예시
if(e.target.checked){
setCheckedList(data.map((each)=>each.value))
} else{
setCheckedList([]);
}
<Checkbox checked= {data.length === checkedList.length}/>
<></> map 돌릴 때 key 넣고 싶다면?
<Fragment></Fragment> 처리를 하세용
6 to 7
function* multipleGenerator(){
for(let i = 0; i<10; i++){
yeild i **2;}
}
const multiple = multipleGenerator();
let next = multiple.next();
console.log(next.value, next.done);
Spread
function sum(one, two, ...nums){
console.log(nums);
}
sum(1,2,3,4,5,6,7) ; // [3,4,5,6,7]
const {name,age,job: occupation, pet:"dog" } = person;
✍️ 프로젝트 X
Monday/ Wednesday/ Thursday (Clarisse랑 날짜 조정하기)
Wednesday/ Saturday
20 to 21 breakkkkk time 쥬씨가즈앙🍓🍓🍓 annaquatijah 답장하기
Clarrisse
Free time