JSTQL-JS-Transform/output_testing/451template-literal.js

9 lines
No EOL
182 B
JavaScript

function componentA(props) {
let t = `hello ${props.a}, ${props.b}!`;
t += ``;
return t;
}
function componentB(props) {
let x = `hello ${props.a}` |> useFoo(%);
return x;
}