Skip to content

Commit

Permalink
docs: change titles in order to avoid duplicate hrefs (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavkamil authored Sep 22, 2023
1 parent deba6ed commit 8e8156f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/getting-started/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and we will compare key differences and similarities between each.

## Redux

### State Model
### State Model (vs Redux)

Conceptually, Zustand and Redux are quite similar,
both are based on an immutable state model.
Expand Down Expand Up @@ -126,7 +126,7 @@ const countSlice = createSlice({
const countStore = configureStore({ reducer: countSlice.reducer })
```

### Render Optimization
### Render Optimization (vs Redux)

When it comes to render optimizations within your app,
there are no major differences in approach between Zustand and Redux.
Expand Down Expand Up @@ -232,7 +232,7 @@ const Component = () => {

## Valtio

### State Model
### State Model (vs Valtio)

Zustand and Valtio approach state management
in a fundamentally different way.
Expand Down Expand Up @@ -263,7 +263,7 @@ const state = proxy({ obj: { count: 0 } })
state.obj.count += 1
```

### Render Optimization
### Render Optimization (vs Valtio)

The other difference between Zustand and Valtio
is Valtio makes render optimizations through property access.
Expand Down Expand Up @@ -306,7 +306,7 @@ const Component = () => {

## Jotai

### State Model
### State Model (vs Jotai)

There are two major differences between Zustand and Jotai.
Firstly, Zustand is a single store,
Expand Down Expand Up @@ -345,7 +345,7 @@ import { atom } from 'jotai'
const countAtom = atom<number>(0)
```

### Render Optimization
### Render Optimization (vs Jotai)

Jotai achieves render optimizations through atom dependency.
However, with Zustand it is recommended that
Expand Down Expand Up @@ -394,7 +394,7 @@ const Component = () => {

## Recoil

### State Model
### State Model (vs Recoil)

The difference between Zustand and Recoil
is similar to that between Zustand and Jotai.
Expand Down Expand Up @@ -433,7 +433,7 @@ const count = atom({
})
```

### Render Optimization
### Render Optimization (vs Recoil)

Similar to previous optimization comparisons,
Recoil makes render optimizations through atom dependency.
Expand Down

1 comment on commit 8e8156f

@vercel
Copy link

@vercel vercel bot commented on 8e8156f Sep 22, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.