in React JS by
Q:
Which of the following method is not a part of ReactDOM?

a) ReactDOM.destroy()

b) ReactDOM.hydrate()

c) ReactDOM.createPortal()

d) ReactDOM.findDOMNode()

1 Answer

0 votes
by

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().

Related questions

0 votes
asked Apr 15 in React JS by Robindeniel
0 votes
asked Apr 15 in React JS by Robindeniel
0 votes
asked Apr 15 in React JS by Robindeniel
...