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