```import { getServicosHome } from "../api/areas";...
# ask-questions
m
Copy code
import { getServicosHome } from "../api/areas";
import { useFeatureIsOn, useFeatureValue } from "@growthbook/growthbook-react";
import { useExperiment } from "@growthbook/growthbook-react";

/.../

const newButtonColor = useFeatureIsOn("buttonColor");

// const buttonColor = useFeatureValue("buttonColor", "blue");

const { value } = useExperiment({
  key: "buttoncolor",
  variations: ["blue", "red"],
});

/.../

{newButtonColor ? (
  <p style={{ background: "red" }}>VERMELHO</p>
) : (
  <p style={{ background: "blue" }}>AZUL</p>
)}