Build a resizable split layout where a draggable handle adjusts two panels — implement a reusable useResizable hook.
Skip to solutionKEEP THE
mediumMachine Coding
Build Resizable Panels with useResizable Hook
415 views
01
Understand the problem
ReactResizableuseResizableLayout
02
Attempt it yourself
Sketch your approach before reading the solution — that's what interviews test.
Nudge consolestandby
Stuck? Beam a request up — the console returns a conceptual nudge that guides your logic without spoiling the implementation.
03
Study the solution
Requirements
- Two panels side-by-side with a draggable divider (8px handle).
- Drag to resize; respect
min/maxwidths (e.g. 200–600px); persist to localStorage. - Handle supports mouse, touch, and keyboard (ArrowLeft/Right 10px).
- Hook API: `const { size, handleProps } = useResizable({ initial: 320, min: 200,
Solution ready — 2 min read
Classified // press E to declassify
04
Join the discussion
Discussion (0)
Sign in to join the discussion.
No responses yet. Be the first to share what you think.
Transmission complete // awaiting log
KEEP THE
STREAK ALIVE.
Dossier 46 of 87 decoded in the Frontend Machine Coding track. One more won't hurt.