I dont know what it is called and whether it is possible in REACT, I would be surprised if not. I would like to make a totally generic toggle component where I can place other components inside. Something like:
<ToggleComponent>
<div>hello</div>
<AnotherCusomComponent></AnotherCusomComponent>
</ToggleComponent>
So I must somehow be able to tell my ToggleComponent where to render everything inside the component. Can someone guide me to an article, sample or what this subject are called in REACT.