Skip to content

Commit

Permalink
Update concepts.md
Browse files Browse the repository at this point in the history
Fixed code sample
  • Loading branch information
fussel178 authored Jan 10, 2024
1 parent cc4060e commit a6b814c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/Frontend Development/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ State is the way to store data inside a component. It is mutable and can be chan
You can initialize and use state using the `useState()` hook like this:

```typescript
const [counter, setCounter] = useCounter(0); // initialize with 0
const [counter, setCounter] = useState(0); // initialize with 0
setCounter(counter + 1); // increase counter by 1
```

Expand Down

0 comments on commit a6b814c

Please sign in to comment.