bitovi / bitovi/react-to-web-component
Accessing `children`
- 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