hunk.code_window: import React, { Component } from 'react';
   import AsyncCreatableSelect from '../../src/AsyncCreatable';
   import { colourOptions } from '../data';
   const filterColors = (inputValue: string) =>
     colourOptions.filter(i =>
       i.label.toLowerCase().includes(inputValue.toLowerCase())
     );
   const promiseOptions = inputValue =>
     new Promise(resolve => {
       setTimeout(() => {
         resolve(filterColors(inputValue));
  
hunk.labels: keep keep keep keep keep replace replace replace replace keep keep keep keep keep
hunk.after_edit: const filterColors = (inputValue: string) => {
     if (inputValue) {
       return colourOptions.filter(i =>
           i.label.toLowerCase().includes(inputValue.toLowerCase())
         );
     }
     return colourOptions;
   };
  
hunk.file_path: docs/examples/AsyncCreatable.js
hunk.type: replace
file: // @flow
  
  import React from 'react';
  import { Route, Switch } from 'react-router-dom';
  
  import type { RouterProps } from '../types';
  import routes from './routes';
  
  const API = ({ match }: RouterProps) => {
    const { path, Component } = routes[match.params.section];
    return (
      <Switch>
        <Route exact path={path} component={Component} />
      </Switch>
    );
  };
  
  export default API;
  