atlassian / atlassian/extract-react-types
Feat: Add support for memo wrapped around a component as an assigned variable
Open
- 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
Assessment
This issue has not been assessed yet.