So basically, it’s not good to access directly real DOM when using virtual DOM such as React that implements virtual DOM, so I have been searching how to animate a React component when the component is unmounting immediately like the component is rendered using map function in javascript, so check…