mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs: update ramda example (#2510)
This commit is contained in:
parent
bdd104a97d
commit
b66ccd5243
@ -131,7 +131,7 @@ You can also use [Ramda](https://ramdajs.com/):
|
||||
|
||||
```ts
|
||||
ramdaInc: () =>
|
||||
set(R.over(R.lensPath(["deep", "nested", "obj", "count"]), (c) => c + 1)),
|
||||
set(R.modifyPath(["deep", "nested", "obj", "count"], (c) => c + 1)),
|
||||
```
|
||||
|
||||
Both ramda and optics-ts also work with types.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user