title: ReactJS - How to return a string from functional component?
body: <p>In react, I am using <code>@apollo/client</code> for backend APIs. In <code>appollo.js</code> I am trying to call backend API link based on condition.</p>
  <p>Right now <code>appollo.js</code> contains only functions, its not a component.</p>
  <p>I am trying add statsig feature to it, <code>const featureOn = useGate(&lt;FEATURE_GATE_NAME&gt;).value; </code></p>
  <p>How can I use statsig variable inside <code>appollo.js</code>?</p>
  <p>Also  I have tried by creating separate component and rendering like <code>&lt;AbcComponent /&gt;</code>, but its not return a required value.</p>
  <p>AbcComponent.js,</p>
  <pre><code>export const AbcComponent = () =&gt; {
    const featureOn = useGate('abc').value
    return featureOn ? 'Yes' : 'no'
  }
  </code></pre>
  <p>In this scenario, how can I get 'Yes/No' from <code>appollo.js</code>?</p>