@fakel/rest-admin
v0.0.73
Published
An application that makes it easier to work with your API
Maintainers
Readme
React Admin (beta)
An application that makes it easier to work with your API
Installation
Using npm:
$ npm i @fakel/rest-adminUsing yarn:
$ yarn add @fakel/rest-adminUsage
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>
)
}