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