# Data binding for custom component

**URL:** <https://forum.builder.io/t/data-binding-for-custom-component/3749>\
**Category:** Technical Questions\
**Tags:** react, visual-editor, nextjs\
**Created:** [June 21, 2023, 1:32pm UTC](https://forum.builder.io/t/data-binding-for-custom-component/3749 "2023-06-21T13:32:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [June 23, 2023, 4:01pm UTC](https://forum.builder.io/t/data-binding-for-custom-component/3749/2 "2023-06-23T16:01:11Z")

</div>

Hi @yuval222,

Would it be possible for you to share a loom or screen recording explaining the requirements?

 ![Screenshot 2023-06-23 at 9.29.53 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/8/80158bba07b2e54263d765176eddcc6ee1bee809.jpeg)

> [@React custom component containing editable subcomponents](https://forum.builder.io/t/react-custom-component-containing-editable-subcomponents/25/2):
>
> Great Q @niall! We have a section in our docs that should help you out with this here [Using Your React Components in Builder.io - Builder.io](https://www.builder.io/c/docs/custom-react-components#text:children-in-custom-components)Easy mode For most cases of needing children, you just need to use our withChildren function, e.g. import { Builder, withChildren } from '@builder.io/react'; export const Hero = props =\> \<div className={heroStyles}\>{div}\</div\> const HeroWithBuilderChildren = withChildren(Hero) Builder.registerComponent(HeroWithBuilderChildren, { name: 'Hero', /…

---

_[View the full topic](https://forum.builder.io/t/data-binding-for-custom-component/3749)._
