First challenge with React^

Solution retrospective
Hello!! This is my 21st challenge and my first challenge using React!!
I have been studying React right now, mostly google-ing things out since I don't have any course about it hahaha but managed to learn even in small increments.
This challenge was fun to create, I want to add other animation but useEffect really did make my head hurt a lot, so yeah, didn't add other but managed to add like in the design. But as I go coding this challenge, useEffect keeps making more sense and so yeyy.
Also, why does it keeps prompting that it needs the props
that I used inside it, as well as the other functions that I used. It would be counterintuitive to include them in the dependency array since I am not firing the effect from those, but it keeps telling me put them inside. Then if I put the props inside, it says now it needs to be destructured, then when I desctructured it in the component, it now needs to be inside a useCallback
. I have a lot to test.
I also implemented my own drag and drop, didn't want to use other modules because it is my first time creating a drag and drop, it is beneficial to first create it as much as you can before jumping to other solution. I got it right :>>
There would be a lot of improvements to be done and if you can point other things, I would really appreciate it. Thank you for checking it out!!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Gepeet
idol na talaga kita dre!
- @MarlonPassos-git
hello pikachu, great job, i really liked the smoothness that everything happens on the page, that animation with the sun and the moon is really cool. One thing I saw that you could do to improve would be:
- the history of the tasks are stored, but the state of the screen is not. For example if I have the light theme and I refresh the screen it goes to the dark theme. It would be nice to have the user theme stored as well to avoid confusion
- @vinhyan
Impressive!!! Though I can not drag the tasks using my phone (touchscreen). But overall looks so cool. I like the night mode and the animation when selecting the tasks 😊
- @RocTanweer
Hello 👋 been a long time since we talked
Nice seeing you doing react..! I started react too
I love the way you coded and there were a lot of things to learn for me 😊
The way you worked for accessibility was impressive..!
Hope we all learn react and other framework by heart
And Good Luck for your react journey..!
See ya..! 👋
PS: You may create a custom hook to deal with LS. Web development simplified explained it very well at YT
- @sagun-k
Your project is awsome
how did you start with the the react, when should I start react as I am getting confused what knowledge should i have to start react please suggest me sir.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord