@fakel/rest-admin
TypeScript icon, indicating that this package has built-in type declarations

0.0.73 • Public • Published

React Admin (beta)

An application that makes it easier to work with your API

See documantation

Installation

Using npm:

$ npm i @fakel/rest-admin

Using yarn:

$ yarn add @fakel/rest-admin

Usage

Create a React app, for example with create-react-app, in your root component add the following code:

import React from 'react';

const dataProvider = createSimpleRest({ apiBaseUrl: 'http://localhost:3000' });

const App = () => {
  return (
    <Admin
      dataProvider={dataProvider}
    >
      <Resource
        name="posts"
        list={PostsView}
        edit={PostEdit}
        create={PostsCreate}
        options={{
          label: 'Posts',
        }}
      />
    </Admin>
  )
}

Package Sidebar

Install

npm i @fakel/rest-admin

Weekly Downloads

2

Version

0.0.73

License

none

Unpacked Size

705 kB

Total Files

677

Last publish

Collaborators

  • fakel