From 16a3fdf93165a1a0404c1db0973871345b2c591b Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 16 Aug 2023 13:40:57 -0400 Subject: Add experimentalReactChildren option to React integration (#8082) * wip: support true react vnodes in renderer * Add new experimentalReactChildren option to React integration * Update the test * Add docs * Update packages/integrations/react/server.js Co-authored-by: Nate Moore * Update with a better test * Update .changeset/yellow-snakes-jam.md Co-authored-by: Sarah Rainsberger * Update packages/integrations/react/README.md Co-authored-by: Sarah Rainsberger * Update packages/integrations/react/README.md Co-authored-by: Sarah Rainsberger --------- Co-authored-by: Nate Moore Co-authored-by: Nate Moore Co-authored-by: Sarah Rainsberger --- .../test/fixtures/react-component/src/components/Research.jsx | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 packages/integrations/react/test/fixtures/react-component/src/components/Research.jsx (limited to 'packages/integrations/react/test/fixtures/react-component/src/components/Research.jsx') diff --git a/packages/integrations/react/test/fixtures/react-component/src/components/Research.jsx b/packages/integrations/react/test/fixtures/react-component/src/components/Research.jsx new file mode 100644 index 000000000..9ab83e5f3 --- /dev/null +++ b/packages/integrations/react/test/fixtures/react-component/src/components/Research.jsx @@ -0,0 +1,7 @@ +import * as React from 'react' + +export function Research2() { + const [value] = React.useState(1) + + return
foo bar {value}
+} \ No newline at end of file -- cgit v1.2.3