Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/quoted-strings-jsx-attribute-escaped-constant-propagation.js
2026-08-27 21:09:14 +00:00

15 lines
310 B
JavaScript

export function Component() {
// Test what happens if a string with double-quotes is interpolated via constant propagation
const text = 'Some "text"';
return <Child text={text} />;
}
function Child(props) {
return props.text;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
};