오늘은 (6) 월 (14) 일 / 날씨: (음 새벽 조금 쌀쌀?)
한줄: 지하철 첫차타고 출근 🌝
May you have a splendiferous week ahead!
8 to 17
Every Morning / Every Evening
drag and drop , 칸반보드
react-beautiful-dnd / DragDropContext
https://github.com/atlassian/react-beautiful-dnd
consst onDragEnd = ()=>{}
<DragDropContext onDragEnd={onDragEnd}>
<div>
<Droppable droppableId="first">
{()=><ul ref={magic.innerRef} {...magic.droppableProps}>
<Draggable draggableId="one" index={0}>
{(provided)=><li ref={magic.innerRef} {...magic.draggableProps} {...magic.dragHandleProps}>One</li>} // 함수여야함
</Draggable>
<Draggable draggableId="two" index={1}>
{()=><li ref={magic.innerRef} {...magic.draggableProps} {...magic.dragHandleProps}>Two</li>}
</Draggable>
</ul>}
</Droppable>
</div>
</DragDropContext>
//li 부분 드래그
<Draggable draggableId="two" index={1}>
{()=><li ref={magic.innerRef} {...magic.draggableProps}> <span {...magic.dragHandleProps}>🐣Two</span></li>}
</Draggable>
droppable : 드래그 드롭 영역
draggable : 드래그 영역
draggableProps: 전체 드래그
dragHandleProps : 부분 드래그
leetcode
https://leetcode.com/explore/learn/card/fun-with-arrays/521/introduction/3221/
const findMaxConsecutiveOnes = function(nums) {
let count=0;
let countmax=0;
for(let i =0; i<nums.length; i++){
if(nums[i]===1){count++};
if(nums[i]===0){count=0};
countmax=Math.max(count,countmax);
}
return countmax;
};
const findMaxConsecutiveOnes = function(nums) {
let count=0;
let countmax=0;
for(let i =0; i<nums.length; i++){
if(nums[i]===1){count++};
if(nums[i]===0){
countmax=Math.max(count,countmax);
count=0;
};
}
return count> countmax? count: countmax;
};
Monday/ Wednesday(Tuesday)/ Thursday (Clarisse랑 날짜 조정하기)
Tuesday / Thursday 21 to 22
Saturday 20 to 22
수영수영 21 to 22
Free time