Inject Slot Adalah

Inject Slot Adalah

This page assumes you've already read the Components Basics. Read that first if you are new to components.

Usually, when we need to pass data from the parent to a child component, we use props. However, imagine the case where we have a large component tree, and a deeply nested component needs something from a distant ancestor component. With only props, we would have to pass the same prop across the entire parent chain:

Notice although the