Like Button: Finished

project image

Today I finished the like button functionality! The like button is now a full functioning component that can be used on any post or card with an id. Glad to have finally figured out the issue! The state wasn't reliant on stored local values as well as being toggled by the button's click handler. That default value of state "liked" had a default value that would update the locally stored value if it was refreshed twice. To fix that I set the default value of "liked " to the stored value. It's very similar to how the dark mode is persisted, just with some tweaks.  I implemented the like button into blog posts as well. On to polishing and wrapping up!