aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode/denofmt-jsx/out.jsx
blob: 9ce294fd773650705c05e218f04e151ad93a7fbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const Foo = ({ name, test }) => {
  return (
    <>
      <h1>hello, {name}</h1>
      <div>{test}</div>
    </>
  );
};

const Bar = () => {
  return (
    <>
      <Foo name="aaa" test="bbb" />
    </>
  );
};