content: import React, { Component } from 'react';
  import logo from './logo.svg';
  import './App.css';
  
  class App extends Component {
    constructor() {
      super();
      this.state = {
        greeting: 'Loading...',
      };
    }
  
    componentDidMount() {
      fetch(`/hello`)
        .then(r => r.text())
        .then(data => this.setState({ greeting: data }));
    }
  
    render() {
      return (
        <div className="App">
          <div className="App-header">
            <img src={logo} className="App-logo" alt="logo" />
            <h2>Welcome to React</h2>
          </div>
          <p className="App-intro">
            {this.state.greeting}
          </p>
        </div>
      );
    }
  }
  
  export default App;
  