hunk.code_window:   try {
       return typeof action === 'string' || typeof action === 'number'
         ? `${action}`
         : typeof action === 'function'
           ? action.name
           : action.type;
     } catch (e) {
       throw new Error(
         'Actions must be strings or objects with a string action.type property.'
       );
     }
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:       ? action.name
         : action.type;
  
hunk.file_path: src/utils.ts
hunk.type: replace
file: import React, { Component } from 'react';
  import logo from './logo.svg';
  import './App.css';
  
  class App extends Component {
    render() {
      return (
        <div className="App">
          <header className="App-header">
            <img src={logo} className="App-logo" alt="logo" />
            <p>
              Edit <code>src/App.js</code> and save to reload.
            </p>
            <a
              className="App-link"
              href="https://reactjs.org"
              target="_blank"
              rel="noopener noreferrer"
            >
              Learn React
            </a>
          </header>
        </div>
      );
    }
  }
  
  export default App;
  