MCPcopy Create free account
hub / github.com/TanStack/query / render

Method render

examples/lit/optimistic-updates/src/approach-tabs.ts:28–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 }
27
28 render() {
29 return html`
30 <div>
31 <div
32 style="display: flex; border-bottom: 1px solid #ddd; margin-bottom: 1.5rem"
33 >
34 <button
35 type="button"
36 style=${this.tabStyle('ui-variables')}
37 @click=${() => (this.activeTab = 'ui-variables')}
38 >
39 Via UI Variables
40 </button>
41 <button
42 type="button"
43 style=${this.tabStyle('cache')}
44 @click=${() => (this.activeTab = 'cache')}
45 >
46 Via Cache Manipulation
47 </button>
48 </div>
49
50 ${
51 this.activeTab === 'ui-variables'
52 ? html`<todo-list-ui></todo-list-ui>`
53 : html`<todo-list-cache></todo-list-cache>`
54 }
55 </div>
56 `
57 }
58}
59
60customElements.define('approach-tabs', ApproachTabs)

Callers

nothing calls this directly

Calls 1

tabStyleMethod · 0.95

Tested by

no test coverage detected