Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

Interactive Comments section using React, Redux, Persist, Material UI

material-ui, react, redux, typescript
Matt Seidel•570
@mseidel819
A solution to the Interactive comments section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Matt Seidel's solution.

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

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