Skip to content

Commit b5cf127

Browse files
authored
fix: create a const for the counter object (#693)
1 parent f82a195 commit b5cf127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/concepts/context.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ import { createSignal, createContext, useContext } from "solid-js";
241241
const CounterContext = createContext(); // create context
242242

243243
export function CounterProvider(props) {
244-
const [count, setCount] = createSignal(props.count || 0),
245-
counter = [
244+
const [count, setCount] = createSignal(props.count || 0);
245+
const counter = [
246246
count,
247247
{
248248
increment() {

0 commit comments

Comments
 (0)