@UserAhmad2001
Posted
Hello pal👋👋👋👋
It's easy actually, Assuming you have stored your app's data in an Array of objects like this one {content: "Lorim", checked: true"}
.
You have to create two states,
- One for storing all the data.
- The other for storing the data that you want to view to the user.
Whenever you want to view all the data the data in the two states should be the same, If you want to only view the completed TODOS then filter the data in the first state and set the second state to the filtered data, and you can do the opposite with the filter method and view only the active TODOs. here is my solution for this challenge.
Hope I delivered the idea
Good luck with the project and Happy Coding