aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-08-17 08:54:28 -0400
committerGravatar Matthew Phillips <matthew@skypack.dev> 2023-08-17 08:54:28 -0400
commitcbb77af978bd0dcee08ad2dcadadb032abc44dc1 (patch)
tree94b7f35fd4214bbcdb1d36393583c5332bc5ff24 /packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx
parent2484dc4080e5cd84b9a53648a1de426d7c907be2 (diff)
parentd6b4943764989c0e89df2d6875cd19691566dfb3 (diff)
downloadastro-cbb77af978bd0dcee08ad2dcadadb032abc44dc1.tar.gz
astro-cbb77af978bd0dcee08ad2dcadadb032abc44dc1.tar.zst
astro-cbb77af978bd0dcee08ad2dcadadb032abc44dc1.zip
Merge branch 'main' into next
Diffstat (limited to 'packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx')
-rw-r--r--packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx b/packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx
new file mode 100644
index 000000000..500c0c694
--- /dev/null
+++ b/packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx
@@ -0,0 +1,10 @@
+import React from 'react';
+
+export default function ({ children }) {
+ return (
+ <div>
+ <div className="with-children">{children}</div>
+ <div className="with-children-count">{children.length}</div>
+ </div>
+ );
+}