Skip to content

[Feature] Nested prop destructuring.  #8

@danielrob

Description

@danielrob

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 <User {...user} /> component intermediary.

Perhaps a {} option next to object props that allows you to destructure them further.

const Component = ({
  item,
  user, 
  user: { profileImageUrl },
}) => ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions