JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 494
  • Score
    100M100P100Q98632F
  • License MIT

JSON API data provider for react-admin.

Package Exports

  • ra-jsonapi-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ra-jsonapi-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ra-jsonapi-client

A JSONAPI compatible data provider for react-admin.

Disclaimer: This project is a work in progress and is missing some basic functionality.

Installation

ra-jsonapi-client is available from npm.

# via npm
npm install ra-jsonapi-client

# via yarn
yarn add ra-jsonapi-client

Usage

//in app.js
import React from "react";
import { Admin, Resource } from "react-admin";
import raJsonapiClient from "ra-jsonapi-client";

const dataProvider = raJsonapiClient('http://localhost:3000');

const App = () => (
  <Admin dashboard={Dashboard} dataProvider={dataProvider}>
    ...
  </Admin>
);

export default App;