@flags-gg/react-library
TypeScript icon, indicating that this package has built-in type declarations

1.3.13 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i @flags-gg/react-library

Homepage

flags.gg

Weekly Downloads

187

Version

1.3.13

License

none

Unpacked Size

27.7 kB

Total Files

22

Last publish

Collaborators

  • keloran