Git Product home page Git Product logo

re_todo's Introduction

header

Typing SVG



🧙🏻‍♀️ Tech Stacks 🪄






🗣️ Collaboration tools 👥




What's new in ddoddi world ?! 👀

Velog's Card



Most Used Lanuages ⭐️

Top Langs



Hits

re_todo's People

Contributors

ddoddiworld avatar

Watchers

 avatar

re_todo's Issues

id 값 주는 방법 변경

기존에 length +1 로 사용했다가 이슈가 있다고 해서 new Date().getTime() 으로 변경

👀 연타하지 않는 이상은 문제 없는 듯..!

🙋🏻‍♀️ 2가지 질문 사항

1. InputBox에서 state 접근 안해도 에러가 안나는 이유?

InputBox.jsx 에는 title,body를 사용자로부터 값을 받아서 state로 dispatch(addTodo(newTodo))하는데
const todos = useSelector((state)=> state.todos)를 주석처리해도 문제가 일어나지 않아서 왜 그런지 궁금합니다!


2. 상세페이지 접근 후 새로고침 하면 에러가 나는 이유?

useEffect(()=>{ if(filteredTodo.length <= 0 || filteredTodo.length > 1) { alert('올바르지 않은 접근이에요! 😫 메인 페이지로 이동합니다.'); navigate("/"); // 기존 경로(메인 화면) 강제 이동. } }, []);

이 코드에서 if문이 왜 저렇게 쓰는지도 잘 모르겠습니다... 연관은 있는 것 같은데 에러 해결하는 방법과 함께 궁금합니다!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.