Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Create a File Explorer in React — Google Drive-Style Folder/File Browser with Breadcrumb Navigation

Prompt

Build a file explorer component like Google Drive in React that allows users to browse an arbitrarily nested folder/file hierarchy. Define a recursive JSON data model where folders have children (folders or files) and files are leaf nodes. Render the current folder's contents as a grid of tiles — folders are clickable to drill down, files are display-only. Maintain a breadcrumb trail at the top showing the path from root to the current folder. Clicking Home resets to root; clicking any breadcrumb crumb navigates back to that level. Support unlimited nesting depth. This was asked in Postman's SDE2 frontend machine-coding interview.

Define a recursive data structure where each folder has id, name, type='folder', and children (array of files/folders).
Test Results

Create a File Explorer in React — Google Drive-Style Folder/File Browser with Breadcrumb Navigation

Build a file explorer component like Google Drive in React that allows users to browse an arbitrarily nested folder/file hierarchy. Define a recursive JSON data model where folders have children (folders or files) and files are leaf nodes. Render the current folder's contents as a grid of tiles — folders are clickable to drill down, files are display-only. Maintain a breadcrumb trail at the top showing the path from root to the current folder. Clicking Home resets to root; clicking any breadcrumb crumb navigates back to that level. Support unlimited nesting depth. This was asked in Postman's SDE2 frontend machine-coding interview.