Build a Todo List component in React.
Requirements:
- Allow users to add new tasks via an input field and a button.
- Display a list of tasks.
- Each task should have a delete button to remove it.
- Focus on functionality over styling.
- The component should work out-of-the-box in a live React preview (e.g., CodeSandbox/Sandpack).