* Create a component renderer. The component renderer inherits the state from the parent, * but has its own content. It is treated as an ordering boundary for ondestroy callbacks. * @param {(renderer: Renderer) => MaybePromise<void>} fn * @param {Function} [component_fn] * @returns {void}
(fn, component_fn)
| 315 | * @returns {void} |
| 316 | */ |
| 317 | component(fn, component_fn) { |
| 318 | push(component_fn); |
| 319 | const child = this.child(fn); |
| 320 | child.#is_component_body = true; |
| 321 | pop(); |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * @param {Record<string, any>} attrs |