Back to problems

Design a client-side comment system

System Design · Bobyard · Medium

Design a browser-only commenting widget that works entirely on the front end, with no server or API calls. The exercise focuses on comment data modeling, rendering a nested discussion tree, sorting/filtering behavior, and restoring state from localStorage. Functional Requirements Comment creation and display A user can submit a new top-level comment. Every comment must contain a unique id, an optional author, the text, and a createdAt timestamp. The UI must render the list…

Checking your access…