how to import component s in react code example Example: import react component import React, { Component } from 'react';