Menu

Post image 1
Post image 2
1 / 2
0

πŸš€ New Challenge: File Explorer

DEV CommunityΒ·ReactChallengesΒ·28 days ago
#41cZNlln
#react#javascript#frontend#frontendchallenge#state#file
Reading 0:00
15s threshold
Cover image for πŸš€ New Challenge: File Explorer

ReactChallenges

Build a recursive file explorer tree view, similar to the sidebar in VS Code.

πŸ‘‰ https://www.reactchallenges.com/challenges/file-explorer

🧠 What you'll practice

  • Managing local state with useState
  • Recursive thinking in React
  • Rendering nested data structures
  • Building clean, composable components
  • Handling UI state at scale

πŸ“‚ The challenge

You’ll implement a tree view where:

  • Folders can be expanded and collapsed independently
  • Each node manages its own state (no global state)
  • Nested folders are fully supported
  • Depth is visually represented with indentation
  • Only folders are interactive (files are static)
  • Accessibility is considered (aria-expanded)

🎯 Goal

This is a focused exercise designed to help you:

  • Think in component trees
  • Get comfortable with recursion in UI
  • Build patterns that scale to real-world applications

πŸ‘‰ https://www.reactchallenges.com/challenges/file-explorer

Read More