ab-react-hook::test_tube:AB-测试React钩

时间:2021-05-01 15:14:44
【文件属性】:
文件名称:ab-react-hook::test_tube:AB-测试React钩
文件大小:117KB
文件格式:ZIP
更新时间:2021-05-01 15:14:44
react javascript hooks experiment typescript A / B 实验挂钩 安装 使用npm: npm i ab-react-hook 或使用纱线: yarn add ab-react-hook 我什么时候应该使用A / B测试? 在开始进行A / B测试之前,这是一个非常好的问题。 一个简单的答案是-当样本数量具有统计意义,并且您的流量很高时。 要为数字使用越挖越深所作,了解多长时间?它带你运行一个A / B测试,并获得统计学显著的结果。 useExperiment() 定义实验变体和权重: variants: [{ name: "control", weight: 50 }, { name: "test", weight: 50 }] 您可以根据需要定义任意数量的变体,但建议您为实验保留两个或最多三个变体。 获取变体并将其发送到您的分析(谷歌分析, facebook分析等),以便您可以将结果汇总到一个地方,以后
【文件预览】:
ab-react-hook-master
----codecov.yml(355B)
----yarn.lock(271KB)
----src()
--------interfaces.ts(475B)
--------randomizer.ts(2KB)
--------constants.ts(43B)
--------index.ts(151B)
--------toggleExperiment.ts(603B)
--------useExperimentAsync.ts(1KB)
--------useExperiment.ts(1KB)
--------usePrevious.ts(232B)
--------__tests__()
----babel.config.js(358B)
----.circleci()
--------config.yml(1KB)
----types()
--------fbjs.d.ts(32B)
----tsconfig.json(568B)
----LICENSE(1KB)
----jest.config.js(249B)
----.prettierrc(221B)
----tslint.json(290B)
----README.md(4KB)
----.editorconfig(168B)
----.gitignore(42B)
----package.json(2KB)

网友评论