Domanda di colloquio di autarc

Build a simple comment system in react with Tailwind CSS for styling and IndexedDB for persistence (not localStorage). The app should: Display a list of comments Add new comments via a text input Delete comments Support nested replies (comment on comments) Persist comments so they survive refresh/restart Bonus: Implement cross-tab synchronization using the BroadcastChannel API so changes appear across open tabs without refreshing Data model: Each comment has id, text, optional parentId, createdAt, and updatedAt. Goal: Deliver a clean, functional, and maintainable implementation within ~2 hours.