You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "fragment" wrapping tag convention can effectively act as a pass through tag that wont be part of the rendered output, but helps from a quality of life perspective when authoring JSX
exportdefaultclassHeaderextendsHTMLElement{connectedCallback(){this.render();}render(){return(<><header><nav>...</nav></header><h1>Welcome to my website!</h1></>);}}customElements.define('app-header',Header);
The text was updated successfully, but these errors were encountered:
Summary
One rule with JSX is that there can only be one top level node in the render tree.
Details
The "fragment" wrapping tag convention can effectively act as a pass through tag that wont be part of the rendered output, but helps from a quality of life perspective when authoring JSX
The text was updated successfully, but these errors were encountered: