@flags-gg/react-library
v1.9.4
Published
The easiest way to use this is to wrap your app code
Downloads
591
Readme
React Library for Flags.gg
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