React - Root element

About

The root element is the root element of the React DOM tree.

It's the element passed to the rendering function ReactDOM.render.

App

In a app, you have at minimal a root rendering. But you may have several root by web pages.

In a web site that use:

  • only react, you would render only one root
  • in another HTML application (php, ruby,…) with templating, you may render several root (for instance to integrate react at several place in another HTML application (php, ruby,…)

Powered by ComboStrap