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