DEV Community

Discussion on: 🔺 Flat React Doom Pyramid in 1LOC

Collapse
 
paramount3545 profile image
Andrei L

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
 
paramount3545 profile image
Andrei L

Yeap

Thread Thread
 
donkarolel profile image
Karolis Juškauskas

Neat.