Mongodb – How can I call parent function in a child React component?
So I want to add delete button, but when I click it I see error: 'TypeError: props.onDeleteTask is not a function' - in component - SingleTask.js //../components/SingleTask.js (...) function deleteTask(props){ const dataId = props.id; props.onDeleteTask(dataId) } (...) <div className={classes.delete}> <img…