9 lines
No EOL
262 B
JavaScript
9 lines
No EOL
262 B
JavaScript
function component(a, b) {
|
|
// we don't handle generators at all so this test isn't
|
|
// useful for now, but adding this test in case we do
|
|
// add support for generators in the future.
|
|
let x = function* () {
|
|
yield a;
|
|
} |> useMemo(%, []);
|
|
return x;
|
|
} |