DEV Community

Discussion on: 🔺 Flat React Doom Pyramid in 1LOC

Collapse
 
iamandrewluca profile image
Andrei Luca

Can you please elaborate? 🤔 That was the point. You write the code flat, and the Pipe will make them in a pyramid shape automatically

Collapse
 
donkarolel profile image
Karolis Juškauskas

You could have all of the providers inside of the, say, Pipe component and then you could do just something like this: <Pipe><App/></Pipe>.

Thread Thread
 
iamandrewluca profile image
Andrei Luca

Yeap

Thread Thread
 
donkarolel profile image
Karolis Juškauskas

Neat.