import as from react code example
Example 1: import reactdom
import ReactDOM from 'react-dom';
Example 2: import react
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import React, { Component } from 'react';