atlassian / atlassian/extract-react-types

Feat: Add support for memo wrapped around a component as an assigned variable

Open
#175 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
188
Forks
31
PR merge metrics
No merged PRs in 30d

Description

🤩 Currently type inference works for the following cases:
```js
memo((props: ComponentProps) => {});
memo(forwardRef(() => {}));

const Component = forwardRef(() => {});
memo(Component);
```

🤯 It would be cool for it to also work for this pls:
```js
const Component = forwardRef(() => {});
memo(Component);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.