i am using react-flow-renderer in my project. and we have a requirement that we want to delete the element by clicking on it.
I had try the following code.
const onElementsRemove = (elementsToRemove) =>
setElements((els) => removeElements(elementsToRemove, els));
I also put this
But we do not want this to.
Could any one have any idea about how to do this it would be a great help

