Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 4 years ago

First challenge with React^

Raymart Pamplona•16,040
@pikapikamart
A solution to the Todo app challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Ven Gallardo•90
    @Gepeet
    Posted over 3 years ago

    idol na talaga kita dre!

  • Marlon Passos•920
    @MarlonPassos-git
    Posted over 3 years ago

    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
  • Vinh Nhan•160
    @vinhyan
    Posted almost 4 years ago

    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 😊

  • Roc Tanweer•2,500
    @RocTanweer
    Posted almost 4 years ago

    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 Khambu Shrestha•30
    @sagun-k
    Posted almost 4 years ago

    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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit 1st-party linked stylesheets, and styles within <style> tags.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub