bitovi / bitovi/react-to-web-component

Accessing `children`

Open
#106 12 comments 5 reactions 0 assignees View on GitHub
accepted enhancement
Dominant language
TypeScript
Stars
944
Forks
52
PR merge metrics
No merged PRs in 30d

Description

Let's say I have this webcomponent

```html
some text I want access to in react
```

I assumed the text would be available as `children` in the react component, but it's not as far as I can tell. Can I access `this.textContent` somehow instead?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue's example in the repository and trace how child content is passed into the wrapped React component. Check whether the project documents or tests children handling; done should establish whether the text is exposed as children or textContent, and add the corresponding behavior or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.