Skip to content

pritulaziah/ab-testing-hook

Repository files navigation

ab-testing-hook

A React hook for A/B testing.

npm version

Features

  • A minimal
  • Only hook usage, without wrapp react components
  • Split traffic by range(For example need only 50% visitors for ab test)
  • Work with server side rendering (SSR)

Example on CodeSandbox:

edit-ab-testing-hook

Installation

npm install ab-testing-hook