1.0.2 • Published 2 years ago

@frappy/react-impex v1.0.2

Weekly downloads
-
License
Apache 2.0
Repository
github
Last release
2 years ago

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