React Admin (beta)
An application that makes it easier to work with your API
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>
)
}