FrontendArk

Master Frontend Interviews

  • Practice
  • Playground
  • Resource
Medium

Todo List

15 mins

Build a Todo List component in React.

Requirements:

  1. Allow users to add new tasks via an input field and a button.
  2. Display a list of tasks.
  3. Each task should have a delete button to remove it.
  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