Socket
Book a DemoInstallSign in
Socket

@frontegg/react-connectivity

Package Overview
Dependencies
Maintainers
1
Versions
471
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/react-connectivity

<h1 align="cent

latest
npmnpm
Version
4.0.23
Version published
Maintainers
1
Created
Source

Frontegg logo

Connectivity Plugin

Pre-built Table to easily integrate Connectivity Services into your React App.

Installation

Frontegg-React-Connectivity is available as an npm package.

// using npm
npm install @frontegg/react-connectivity

// using yarn
yarn add @frontegg/react-connectivity

// NOTE: to get the latest stable use @latest.

Usage

All you need is to pass AuditsPlugin to the FronteggProvider:

/* imports */
import { FronteggProvider } from '@frontegg/react-core';
import { ConnectivityPlugin } from '@frontegg/react-connectivity';

const plugins = [ConnectivityPlugin()];

ReactDOM.render(
<BrowserRouter>
  <FronteggProvider
      context={/* context options */}
      plugins={plugins}>
    <App />
  </FronteggProvider>
</BrowserRouter>, document.querySelector('#app'));

Then add ConnectivityPage component to your route:

import { ConnectivityPage } from '@frontegg/react-connectivity';

<Route exact={false} path={'/connectivity'} component={ConnectivityPage}/>

// or if you want to add special parameters for the ConnectivityPage component

<Router exact={false} path={'/somewhere/connectivity''}>
  <ConnectivityPage rootPath='/somewhere/connectivity' />
</Router>

Parameters

  • rootPath - a custom root path for the component by default it's /connectivity
  • className - a className for the whole container
  • headClassName - a className for the header component
  • contentClassName - a className for the container of the table

Contributing

The main purpose of this repository is to continue developing Frontegg React to making it faster and easier to use. Read our contributing guide to learn about our development process.

Notice that contributions go far beyond pull requests and commits.

License

This project is licensed under the terms of the MIT license.

FAQs

Package last updated on 10 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts