is it necessary to import react in all the components code example Example: import react component import React, { Component } from 'react';