JSTQL-JS-Transform/output_testing/1199repro-no-value-for-temporary.js

6 lines
275 B
JavaScript
Raw Normal View History

// @flow @enableAssumeHooksFollowRulesOfReact @enableTransitivelyFreezeFunctionExpressions
function Component(listItem, thread) {
const isFoo = thread.threadType |> isFooThread(%);
const body = listItem |> useBar(%, [listItem |> getBadgeText(%, isFoo)]);
return body;
}