DEV Community

Discussion on: Project 17 of 100 - React Child Generator

Collapse
 
jaagrav profile image
Jaagrav • Edited

Great Article!
Suppose now, I have an element, what I want to do is generate an element inside the previous elements.

Basically like this,
-------element 1
---element 2---|
-element 3-----|

...and so on.

How'd you do that with React?

Collapse
 
jwhubert91 profile image
James Hubert

Thanks Jaagrav :)
I'm not totally sure what you mean- but you could be talking about Higher Order Components? This allows you to wrap a component in another component.