Open umarjavedpresize opened 3 years ago
This is already supported, but not well documented. The third argument of useExperiment
is defaultVariantName
:
https://github.com/marvelapp/react-ab-test/blob/73fa6b1b40d19431db76a91dfa7d9e90ad1fc14b/src/hook.jsx#L11
Here's an example: https://codesandbox.io/s/react-ab-test-use-experiment-default-variant-g7iip
My requirements are only fulfilled using useExperiment hook and I can't find anything like defaultVariantName for this hook