The easiest way to use this is to wrap your app code
import {BrowserRouter} from "react-router-dom";
import {FlagsProvider} from "@flags-gg/react-library";
import SiteRouter from "@C/SiteRouter";
function App() {
return (
<BrowserRouter>
<FlagsProvider options={{
projectId: "bob",
agentId: "bob",
environmentId: "bob",
}}>
<SiteRouter />
</FlagsProvider>
</BrowserRouter>
);
}
export default App;
You can get the projectId, agentId, and environmentId from flags.gg