adobe / adobe/react-webcomponent

@byContent should have a default functionality when no parameters are passed

Open
#10 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
104
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Like the @byAttrVal annotation, when no parameters are passed, there is a default behaviour (in that case, matching the attribute with the same name of the property).

When I use @byContent without parameters, `@byContent()`, I expect a list of nodes, or a node (like a React.Fragment) wrapping everything inside the web component, maybe like the normal `this.props.children` property.

Contributor guide

Open the contributing guide

Research direction

Start by locating the @byContent and @byAttrVal annotation implementations and their tests, then compare how each behaves when called without parameters. Clarify whether the result should be a node, a list, or a React.Fragment containing the web component's children, and consider the work complete when that behavior is specified, implemented, and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.