Now the completed course has a green tick mark
Basically now if you click on finish lesson you’ll be redirected back to the course page and the lesson you choose as completed will have a green tick mark inside the course card.
~
Also, if a lesson is completed the navbar won’t show the finish lesson button.
~
Right now, the data doesn’t persist across reloads. I will store the data in localStorage next and when I implement the backend, then only I’ll store the data in database.
~
The challenging part was seeing the whole picture. How will the feature work, where will the data live and how to know if a lesson is completed, things like that.
~
Also, during development I thought of using useContext hook but I had forgot how to use the hook while following best practices so I just went to my previous project to relearn stuff😅😆.
~
I decided to use pen and paper for problem solving and better visualization which worked really great for me 🎉🎉. I will definitely do this when I encounter problems in the future 😄.
~
Btw, No bullet points this time😅. I haven’t completed much as I’m sick. Hopefully I get well tomorrow🤞.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.