David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120 | import React, { useState } from 'react'; | |
| function TodoForm({ onAdd }) { | |
| const [title, setTitle] = useState(''); | |
| const handleSubmit = (e) => { | |
| e.preventDefault(); | |
| if (!title.trim()) return; | |
| onAdd(title.trim()); | |
| setTitle(''); | |
| }; | |
| return ( | |
| <form onSubmit={handleSubmit} style={{ marginBottom: '1rem' }}> | |
| <input | |
| type="text" | |
| placeholder="New todo" | |
| value={title} | |
| onChange={e => setTitle(e.target.value)} | |
| /> | |
| <button type="submit">Add</button> | |
| </form> | |
| ); | |
| } | |
| export default TodoForm; | |