   type: 'text',
                    placeholder: 'Add a new todo...',
                    value: () => getState('newTodoText', ''),
                    oninput: (e) => setState('newTodoText', e.target.value),
                    onkeypress: (e) => {
                      if (e.key === 'Enter') {
                        const text = getState('newTodoText', '').trim();
                        if (text) {
                          const todoId = Date.now().toString();
                          setState(\`todo