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
|
(pi:h
|
||||||
(section (view:asset-props :style "pages/about.css"
|
(section (view:asset-props :style "pages/about.css"
|
||||||
:script "pages/about.js"
|
:script "pages/about.js"
|
||||||
:x-data "aboutPageState")
|
:x-data "aboutPage")
|
||||||
(h1 "About")
|
(h1 "About")
|
||||||
(a :href "/" :hx-boost "true"
|
(a :href "/" :hx-boost "true"
|
||||||
"top")
|
"top")
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
(pi:h
|
(pi:h
|
||||||
(section (view:asset-props :style "pages/index.css"
|
(section (view:asset-props :style "pages/index.css"
|
||||||
:script "pages/index.js"
|
:script "pages/index.js"
|
||||||
:x-data "indexPageState")
|
:x-data "indexPage")
|
||||||
(h1
|
(h1
|
||||||
"Hello, World!")
|
"Hello, World!")
|
||||||
(a :href "/about" :hx-boost "true"
|
(a :href "/about" :hx-boost "true"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export const aboutPageState = () => ({
|
export const aboutPage = () => ({
|
||||||
count: 0,
|
count: 0,
|
||||||
|
|
||||||
decrement() {
|
decrement() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export const indexPageState = () => ({
|
export const indexPage = () => ({
|
||||||
count: 0,
|
count: 0,
|
||||||
|
|
||||||
increment() {
|
increment() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue