I am trying to unmount a component, but when I look in the React devtools, it looks like it will not be unmounted. In a project where I code in another language I am using a function which contains ReactDOM.unmountComponentAtNode(...). This function have I exported from my React project.
Is it not the correct way to unmount a component? How can I solve this.