Olá, estou tendo um problema que ao clicar em ADICIONAR a tarefa não é acrescentada na lista.
Dentro do console aparece o seguinte erro ao abrir a página: "Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17."
Ao clicar no botão adicionar o console apresenta o seguinte erro: "index.tsx:17 Uncaught TypeError: Cannot read properties of undefined (reading 'props') at adicionarTarefa (index.tsx:17:1) at HTMLUnknownElement.callCallback (react-dom.development.js:4157:1) at Object.invokeGuardedCallbackDev (react-dom.development.js:4206:1) at invokeGuardedCallback (react-dom.development.js:4270:1) at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4284:1) at executeDispatch (react-dom.development.js:9011:1) at processDispatchQueueItemsInOrder (react-dom.development.js:9043:1) at processDispatchQueue (react-dom.development.js:9056:1) at dispatchEventsForPlugins (react-dom.development.js:9067:1) at react-dom.development.js:9258:1"