10 lines
140 B
JavaScript
10 lines
140 B
JavaScript
|
function component(a, b) {
|
||
|
let x = (() => {
|
||
|
if (a) {
|
||
|
return {
|
||
|
b
|
||
|
};
|
||
|
}
|
||
|
}) |> useMemo(%, [a, b]);
|
||
|
return x;
|
||
|
}
|