danielrob / danielrob/aperitif-editor

[Feature] Nested prop destructuring.

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.