chore: initialize project

This commit is contained in:
2026-04-03 16:28:55 +03:00
commit afb7d70855
42 changed files with 10073 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { Store } from '@tanstack/store'
export const store = new Store({
firstName: 'Jane',
lastName: 'Smith',
})
export const fullName = new Store(
`${store.state.firstName} ${store.state.lastName}`,
)
store.subscribe(() => {
fullName.setState(() => `${store.state.firstName} ${store.state.lastName}`)
})