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

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

44

Version

1.9.4

License

none

Unpacked Size

41.9 kB

Total Files

6

Last publish

Collaborators

  • keloran