npm.io
1.0.2 • Published 4 years ago

@frappy/react-impex

Licence
Apache 2.0
Version
1.0.2
Deps
4
Size
25 kB
Vulns
0
Weekly
0

React Database Import/Export Module

React Component to Facilitate Database Import/Export Functionality

This package is a counterpart to the following server-side package and uses the endpoints provided by those packages:

Usage

import React from "react"
import { Switch, Route } from "react-route"
import { ImpexManager } from "@frappy/react-impex"

const RouterComponent = props => (
    <Switch>
        <Route path="/admin/impex" exact component={() => <ImpexManager />} />
        ... other routes
    </Switch>
)

Properties

  • apiPrefix - default /api/impex - the endpoint used by the server-side component to register the endpoints

Keywords