ddoddiworld / re_todo Goto Github PK
View Code? Open in Web Editor NEW패키지를 사용한 투두 리스트 만들기
Home Page: https://re-todo.vercel.app
패키지를 사용한 투두 리스트 만들기
Home Page: https://re-todo.vercel.app
기존에 length +1 로 사용했다가 이슈가 있다고 해서 new Date().getTime() 으로 변경
👀 연타하지 않는 이상은 문제 없는 듯..!
InputBox.jsx 에는 title,body를 사용자로부터 값을 받아서 state로 dispatch(addTodo(newTodo))
하는데
const todos = useSelector((state)=> state.todos)
를 주석처리해도 문제가 일어나지 않아서 왜 그런지 궁금합니다!
useEffect(()=>{ if(filteredTodo.length <= 0 || filteredTodo.length > 1) { alert('올바르지 않은 접근이에요! 😫 메인 페이지로 이동합니다.'); navigate("/"); // 기존 경로(메인 화면) 강제 이동. } }, []);
이 코드에서 if문이 왜 저렇게 쓰는지도 잘 모르겠습니다... 연관은 있는 것 같은데 에러 해결하는 방법과 함께 궁금합니다!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.