dillon1000/react
Commit
Browse files Wrap JSXFragment in expr container for attributes
@mofeiZ noticed that some configurations of prettier don't support JSXFragment appearing as a JSXAttribute value, in violation of the spec. Coincidentally I noticed that our internal build system also fails on this as i was trying to roll out on more surfaces. This PR makes sure we wrap fragments in an expressioncontainer if they appear as jsxattribute values.
Changed paths3 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/jsx-attribute-with-jsx-fragment-value.flow.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/jsx-attribute-with-jsx-fragment-value.flow.js AddedPatch
Files changed
Rendering syntax-highlighted changes…