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

1.3.8 • 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

Readme

Keywords

Package Sidebar

Install

npm i @flags-gg/react-library

Homepage

flags.gg

Weekly Downloads

373

Version

1.3.8

License

none

Unpacked Size

26.6 kB

Total Files

22

Last publish

Collaborators

  • keloran