1. 首页
  2. 数据库
  3. 其它
  4. fp ts react stable hooks:使用FP TS相等性检查进行React的稳定钩子而不是浅层(参考)对象比较 源码

fp ts react stable hooks:使用FP TS相等性检查进行React的稳定钩子而不是浅层(参考)对象比较 源码

上传者: 2021-04-17 17:12:01上传 ZIP文件 20.83KB 热度 15次
fp-ts-React稳定-钩子 使用FP-TS相等性检查进行React的稳定钩子,而不是浅层(参考)对象比较 安装 npm install fp-ts-react-stable-hooks 用法 简单示例useStableO和Option helper相等函数 import * as Eq from "fp-ts/Eq" ; import * as O from "fp-ts/Option" ; import { useStableO } from "fp-ts-react-stable-hooks" ; // Equality function defaults to Eq.eqStrict so there is no need to provide it for primitive data types such as string, number, or boolean cons
下载地址
用户评论