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