Files
react/compiler/crates/react_hermes_parser/tests/fixtures/fbt-template-string-same-scope.js
2024-04-02 16:49:31 -07:00

18 lines
322 B
JavaScript

import fbt from "fbt";
export function Component(props) {
let count = 0;
if (props.items) {
count = props.items.length;
}
return (
<View>
{fbt(
`for ${fbt.param("count", count)} experiences`,
`Label for the number of items`,
{ project: "public" }
)}
</View>
);
}