aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/test/fixtures/react-component/src/components/WithChildren.jsx
diff options
context:
space:
mode:
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>
+ );
+}