Rename PageState to Page

This commit is contained in:
Akira Tempaku 2024-04-21 23:48:08 +09:00
parent 82d40276aa
commit 7396051d37
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
(pi:h
(section (view:asset-props :style "pages/about.css"
:script "pages/about.js"
:x-data "aboutPageState")
:x-data "aboutPage")
(h1 "About")
(a :href "/" :hx-boost "true"
"top")

View file

@ -9,7 +9,7 @@
(pi:h
(section (view:asset-props :style "pages/index.css"
:script "pages/index.js"
:x-data "indexPageState")
:x-data "indexPage")
(h1
"Hello, World!")
(a :href "/about" :hx-boost "true"

View file

@ -1,4 +1,4 @@
export const aboutPageState = () => ({
export const aboutPage = () => ({
count: 0,
decrement() {

View file

@ -1,4 +1,4 @@
export const indexPageState = () => ({
export const indexPage = () => ({
count: 0,
increment() {