Skip to content

Commit

Permalink
Fix code markdown syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarRocha committed Dec 24, 2023
1 parent 22aefa5 commit 8740dda
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/developing/islands/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,23 @@ Within a component, if the state is only used locally, you can use the
`useSignal` hook to create these elements that can be used in the function body
or in the JSX returned, as in the example below.

````tsx
```tsx
import { useSignal } from "@preact/signals";

export default function Counter() {
const count = useSignal(0)
const count = useSignal(0);

return (
<div>
<button onClick={() => count.value-- }>
<button onClick={() => count.value--}>
-
</button>
<span>{count}</span>
<button onClick={() => count.value++ }>
<button onClick={() => count.value++}>
+
</button>
</div>
)
);
}
```

Expand All @@ -120,7 +120,7 @@ Signals are also a great way of sharing state between islands, since one can pub
To use signals,
```tsx
import { signal } from '@preact/signals';
````
```

Now, use the global scope to create, mutate and subscribe to a signal:

Expand Down

2 comments on commit 8740dda

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 8740dda Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

BOOT_FAILURE

Uncaught SyntaxError: The requested module 'https://deno.land/std/encoding/base64.ts' does not provide an export named 'decode'
    at https://deno.land/x/[email protected]/deno/zstd.ts:1:10

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on 8740dda Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

BOOT_FAILURE

Uncaught SyntaxError: The requested module 'https://deno.land/std/encoding/base64.ts' does not provide an export named 'decode'
    at https://deno.land/x/[email protected]/deno/zstd.ts:1:10

Please sign in to comment.