importing a react component code example Example: import react component import React, { Component } from 'react';