export function ComponentA({ list, y }) { return (
{ 'use server' console.log(list.find((x) => x === y)) }} >
) } export function ComponentB({ list, y }) { return (
{ 'use server' console.log( list.find(function (x) { return x === y }) ) }} >
) }