This was intended for object expressions. I tried to remove it for ObjectTypeAnnotation but it changes a ton of stuff as it's used all over the place in many different contexts. We should clean it up but in a later PR :) Fixes part of #975
10 lines
121 B
JavaScript
10 lines
121 B
JavaScript
const Component1 = ({ props }) => (
|
|
<Text>Test</Text>
|
|
);
|
|
|
|
const Component2 = ({
|
|
props
|
|
}) => (
|
|
<Text>Test</Text>
|
|
);
|