diff --git a/docs/getting-started/comparison.md b/docs/getting-started/comparison.md index 97f2e1261c..1a9abb859a 100644 --- a/docs/getting-started/comparison.md +++ b/docs/getting-started/comparison.md @@ -21,6 +21,8 @@ both are based on an immutable state model. However, Redux requires your app to be wrapped in context providers; Zustand does not. +**Zustand** + ```ts import { create } from 'zustand' @@ -74,6 +76,8 @@ const useCountStore = create((set) => ({ })) ``` +**Redux** + ```ts import { createStore } from 'redux' import { useSelector, useDispatch } from 'react-redux'