in React JS by
Q:
What is the use of react-dom package?

1 Answer

0 votes
by

The react-dom package provides DOM-specific methods that can be used at the top level of your app. Most of the components are not required to use this module. Some of the methods of this package are:

  • render()
  • hydrate()
  • unmountComponentAtNode()
  • findDOMNode()
  • createPortal()

Related questions

0 votes
asked Feb 24 in React JS by SakshiSharma
0 votes
0 votes
asked Dec 14, 2019 in React JS by AdilsonLima
0 votes
asked Dec 14, 2019 in React JS by AdilsonLima
0 votes
asked May 20, 2020 in React JS by GeorgeBell
...