| 1 | import React from 'react'; |
| 2 | import {shallowCopy} from 'shared-runtime'; |
| 3 | |
| 4 | function Component(props) { |
| 5 | const childProps = {style: {width: props.width}}; |
| 6 | const element = React.createElement('div', childProps, ['hello world']); |
| 7 | shallowCopy(childProps); // function that in theory could mutate, we assume not bc createElement freezes |
| 8 | return element; |
| 9 | } |
| 10 | |
| 11 | export const FIXTURE_ENTRYPOINT = { |
| 12 | fn: Component, |
| 13 | params: [{}], |
| 14 | }; |