import { Component, h, State } from '@stencil/core'; @Component({ tag: 'slot-dynamic-wrapper-root', }) export class SlotDynamicWrapperRoot { @State() tag = 'section'; changeWrapper() { if (this.tag === 'section') { this.tag = 'article'; } else { this.tag = 'section'; } } render() { return [ ,

parent text

, ]; } }