Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions packages/docs/src/routes/docs/cheat-sheet/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function Component() {
const [value, setValue] = useState(0);
return (
<div>
Value is: ${value}
Value is: {value}
</div>
)
}
Expand Down Expand Up @@ -108,9 +108,9 @@ export function Counter() {
return (
<>
<div>
Value is: ${count}
Value is: {count}
</div>
<button onClick$={() => setCount(count + 1)}>
<button onClick={() => setCount(count + 1)}>
Increment
</button>
</>
Expand Down Expand Up @@ -155,7 +155,7 @@ export function Clock() {
});
return (
<div>
Seconds: ${seconds}
Seconds: {seconds}
</div>
)
}
Expand All @@ -181,7 +181,7 @@ export const Fetch = component$(() => {

return (
<>
<div>${state.responseJson.name}</div>
<div>${state.responseJson?.name}</div>
<input name="url" onInput$={(ev) => (state.url = ev.target.value)} />
</>
);
Expand All @@ -201,7 +201,7 @@ export function Fetch() {
}, [url]);
return (
<>
<div>${responseJson.name}</div>
<div>{responseJson?.name}</div>
<input name="url" onInput={(ev) => setUrl(ev.target.value)} />
</>
);
Expand Down Expand Up @@ -389,7 +389,7 @@ export function Presidents() {
return (
<ul>
{presidents.map((president) => (
<li>
<li key={president.name + president.years}>
{president.name} ({president.years})
</li>
))}
Expand Down