Interactive Comments section using React, Redux, Persist, Material UI
Design comparison
Solution retrospective
I just resubmitted this project, adding on Redux, React-Redux, Reselect, Redux-Logger, and Redux-persist. Now, currentUser
and Comments
are all in the redux store. I kept the toggle functions as react hooks because they needed to stay localized to the specific components they were mapped to.
Also, I used redux-persist in order to access local storage so the user's comments wont disappear when the page is reloaded.
Now that the code is much cleaner and organized, I notice that the modal window can be its own component. I'd like to fix that soon.
This is my first time using redux and its corresponding libraries all on my own, so comments on best practices, organization, etc are welcome!
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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