FrontendArk

Master Frontend Interviews

  • Practice
  • Playground
  • Resource
Medium

Image Carousel

20 mins

Build an Image Carousel component in React.

Requirements:

  1. Display a sequence of images one at a time.
  2. Include "Next" and "Previous" buttons to navigate between images.
  3. Loop back to the first image after the last one, and vice versa.
  4. Focus on functionality over styling.
  5. The component should work out-of-the-box in a live React preview (e.g., CodeSandbox/Sandpack).

Code Editor

React Component

00:00
Loading...

Live Preview

See your React component