danielrob / danielrob/aperitif-editor
[Feature] Nested prop destructuring.
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 20
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently, props that are objects cannot be destructured in the list of component props.
Desired e.g. the ability to interact with `user.profileImageUrl` without first creating a `` component intermediary.
Perhaps a `{}` option next to object props that allows you to destructure them further.
```
const Component = ({
item,
user,
user: { profileImageUrl },
}) => ....
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.