Fullstack Interactive Comments Section - Next.js and Express

Solution retrospective
My main concern is with the way I load data and handle it. I know that I could improve the UI by rendering a loader or something, but my main concern is with the all of the optional chaining that I had to do to avoid causing errors/bugs. I had originally thought my selective rendering would be enough to avoid needing the optional chaining. Is there a better way to handle loading the data and THEN rendering?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Michael Schultz'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