Answer: A is the correct answer as ReactDOM. destroy() method is not a part of ReactDOM . ReactDOM provides the developers with an API containing the methods such as render(), findDOMNode(), unmountComponentAtNode(), hydrate(), and createPortal().
Read moreWhat is ReactDOM and what is the difference between ReactDOM and React?
Answer. React is a JavaScript library for building User Interfaces and ReactDOM is the JavaScript library that allows React to interact with the DOM .
Read moreDo I need to import ReactDOM?
You need to import the default, and you need to name it React . This is because anytime you write JSX code like <MyComponent /> or <App /> , this JSX code is transpiled and uses React.
Read more