function render() {
  return (<div class="test" id={id} {...props} key="test" data-expanded={expanded} {...props.attrs}>
    <div {...props} />
  </div>);
}

function render() {
  var test = <div {...props} />;
  return (<div class="test" id={id} {...props} key="test" data-expanded={expanded} {...props.attrs}>
    <div {...props} />
  </div>);
}

Test that spread attributes are closed over
Test that spread attributes are closed over
