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