Skip to content

Commit c02e9f5

Browse files
committed
install xstate
1 parent d8904f1 commit c02e9f5

4 files changed

Lines changed: 51 additions & 0 deletions

File tree

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"solid-trpc": "^0.1.0-ssr.1",
4444
"solidstart-17": "file:",
4545
"undici": "5.15.1",
46+
"xstate": "^4.35.2",
4647
"zod": "^3.20.2"
4748
},
4849
"engines": {

src/routes/xstate/checkoutMachine.ts

Whitespace-only changes.

src/routes/xstate/index.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { VoidComponent } from "solid-js";
2+
import { Title } from "solid-start"
3+
import Layout from "~/layouts/Layout"
4+
5+
const XStatePage: VoidComponent = () => {
6+
7+
8+
return (
9+
<Layout>
10+
<Title>XState</Title>
11+
<h1>XState</h1>
12+
13+
14+
15+
<h2>Basic layout</h2>
16+
<section>
17+
<div>
18+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
19+
</div>
20+
</section>
21+
22+
23+
24+
25+
</Layout>
26+
)
27+
}
28+
29+
export default XStatePage

0 commit comments

Comments
 (0)