@emberkit/cli 0.6.1-alpha.8 → 0.6.1-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -137,7 +137,7 @@ const HomePage: RouteComponent = () => {
|
|
|
137
137
|
<div className="space-y-10">
|
|
138
138
|
{posts.map((post) => (
|
|
139
139
|
<article key={post.slug} className="group">
|
|
140
|
-
<a href={
|
|
140
|
+
<a href={post.slug} className="block">
|
|
141
141
|
<h2 className="text-xl font-semibold font-serif mb-2 group-hover:text-blue-600 transition-colors">
|
|
142
142
|
{post.title}
|
|
143
143
|
</h2>
|
|
@@ -190,11 +190,11 @@ const posts: Record<string, PostData> = {
|
|
|
190
190
|
content: \`
|
|
191
191
|
<p>Signals are the reactive primitive at the core of EmberKit.</p>
|
|
192
192
|
<h2>Creating Signals</h2>
|
|
193
|
-
<pre><code>const count =
|
|
193
|
+
<pre><code>const [count, setCount] = createSignal(0);</code></pre>
|
|
194
194
|
<h2>Computed Values</h2>
|
|
195
|
-
<pre><code>const doubled =
|
|
195
|
+
<pre><code>const doubled = createMemo(() => count() * 2);</code></pre>
|
|
196
196
|
<h2>Side Effects</h2>
|
|
197
|
-
<pre><code>
|
|
197
|
+
<pre><code>createEffect(() => console.log(count()));</code></pre>
|
|
198
198
|
\`,
|
|
199
199
|
},
|
|
200
200
|
'file-based-routing': {
|