20 lines
526 B
Markdown
20 lines
526 B
Markdown
#### Don't break signature of hugged function expression if parameters are identifiers without types (#13410 by @thorn0)
|
|
|
|
<!-- prettier-ignore -->
|
|
```tsx
|
|
// Prettier stable
|
|
export const Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
|
|
props,
|
|
ref
|
|
) {
|
|
return <ThemeUILink ref={ref} variant="default" {...props} />;
|
|
});
|
|
|
|
// Prettier main
|
|
export const Link = forwardRef<HTMLAnchorElement, LinkProps>(
|
|
function Link(props, ref) {
|
|
return <ThemeUILink ref={ref} variant="default" {...props} />;
|
|
},
|
|
);
|
|
```
|