|
1
|
import * as React from 'react'; |
|
2
|
|
|
3
|
function Component(props) { |
|
4
|
const x = React.useMemo(() => { |
|
5
|
const x = []; |
|
6
|
x.push(props.value); |
|
7
|
return x; |
|
8
|
}, [props.value]); |
|
9
|
return x; |
|
10
|
} |
|
11
|
|
|
12
|
export const FIXTURE_ENTRYPOINT = { |
|
13
|
fn: Component, |
|
14
|
params: [{value: 42}], |
|
15
|
}; |