Rename PageState to Page
This commit is contained in:
parent
82d40276aa
commit
7396051d37
4 changed files with 4 additions and 4 deletions
src
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const aboutPageState = () => ({
|
||||
export const aboutPage = () => ({
|
||||
count: 0,
|
||||
|
||||
decrement() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const indexPageState = () => ({
|
||||
export const indexPage = () => ({
|
||||
count: 0,
|
||||
|
||||
increment() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue