Render Nested JSON in a Code-Style Viewer
Company: xAI
Role: Frontend Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Overview: Render nested JSON safely in React with indentation, type styling, collapsible containers, empty values, and explicit boundaries between a viewer and an editor.
Read the full xAI Frontend Engineer interview experience this question came from