hunk.code_window:           const current = { ...this.props.from, ...this.props.to }
             onRest && onRest(current)
             cb && typeof cb === 'function' && cb(current)
             if (this.didInject) {
               // Restore the original values for injected props
               const componentProps = this.convertValues(this.props)
               this.inject = this.renderChildren(this.props, componentProps)
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:           if (didInject) {
               console.log('inject done')
  
hunk.file_path: src/Spring.js
hunk.type: replace
file: import React, { Fragment } from 'react'
  import { Group } from '@vx/group'
  
  import Node from './Node'
  import { getTopLeft } from './utils'
  
  function Nodes({ nodes, layout, orientation, onNodeClick }) {
    return (
      <Fragment>
        {nodes.map((node, i) => (
          <Group {...getTopLeft(node, layout, orientation)} key={i}>
            <Node
              node={node}
              layout={layout}
              orientation={orientation}
              onClick={() => onNodeClick(node)}
            />
          </Group>
        ))}
      </Fragment>
    )
  }
  
  export default Nodes
  