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