Post

I didn't get any credit for the `as` prop back then, which is fair since I didn't invent it. I borrowed it from a library called Semantic UI. But I'd be sad if the same thing happened with the `render⁠=⁠{⁠<⁠Comp⁠ ⁠/⁠>⁠}⁠` API. I invested a lot of time in that.

ahh didn't mean to be snarky 🙈 was actually just trying to sort out the concepts for myself, to know whether that would be considered a render prop and whether that was what Diego was meaning, or whether it was a sub-pattern of that overall pattern

The idea of using the `render` name was to leverage people's familiarity with the functionality. Even if the API is slightly different, they will likely understand its purpose just by reading it. Anyway, Ariakit supports the original render prop API as well (ariakit.org/guide/compos...).

0 reposts2 likes

No replies yet.