Post

Basic question but I can't figure it out. How are these two design patterns called? In the first, the component structure is fixed, and behavior is controlled *only* through props serving as config. In the second, an extension point via the children prop allows for more flexibility.

I found people calling the second one "children pattern". This concept isn’t React specific, though, probably not even JavaScript specific. There must be framework & language agnostic terms. But which? - config vs. extension point pattern? - props vs. slots pattern? - ?

0 reposts0 likes

No replies yet.