Replies: 1 comment 1 reply
-
Why not make it obvious that these are flow components? <Layout1>
{() => <Layout2>
{() => <Layout3>
{() => <Layout4>
{child}
</Layout4>}
</Layout3>}
</Layout2>}
</Layout1> You might need to map arguments and props. Explicit is better than implicit. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have:
How do I make it so that it wraps around child like this:
My current solution is this:
I based this off of MultiProvider - from solid primitives that makes it possible to call a single component to wrap multiple providers around a function.
It does work currently. But I'm having issues when it's on build (though I'm not sure if this is the culprit or something else under the hood). In any case, I'm wondering if there's a better solution? Or if I'm satisfying the Solid compiler correctly here?
In React, the solution is actually a bit more straightforward:
Beta Was this translation helpful? Give feedback.
All reactions