0 votes
in ReactJS by

What is the difference between React and ReactDOM?

1 Answer

0 votes
by

The react package contains React.createElement()React.ComponentReact.Children, and other helpers related to elements and component classes. You can think of these as the isomorphic or universal helpers that you need to build components. The react-dom package contains ReactDOM.render(), and in react-dom/server we have server-side rendering support with ReactDOMServer.renderToString() and ReactDOMServer.renderToStaticMarkup().

Related questions

0 votes
asked Mar 30, 2020 in ReactJS by amita rallin
0 votes
asked Mar 1, 2020 in ReactJS by RShastri
...