0 votes
in ReactJS by
retagged by
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, 2022 in ReactJS by Robindeniel
0 votes
asked Apr 15, 2022 in ReactJS by Robindeniel
...