docs: function mutate(Component, title, api = {}) {
    class Mutated extends React.Component {
      constructor(props, context) {
        super(props);
  
        this.ToRender = Component;
        const mutations = context.mutations;
  
        if (!mutations || !mutations[title]) {
          return;
        }
  
        // Convert old style mutations to new style mutations
        if (!Array.isArray(mutations[title])) {
          mutations[title] = [mutations[title]];
        }
  
        // Apply all mutations to the component
        for (let mut of mutations[title]) {
          this.ToRender = mut(this.ToRender, api);
        }
      }
  
      render() {
        const ToRender = this.ToRender;
        return <ToRender {...this.props} />;
      }
    }
  
    Mutated.contextTypes = {
      mutations: PropTypes.object
    };
  
    return Mutated;
  }