1// in src/App.js
2import * as React from "react";
3
4import { Admin, Resource } from 'react-admin';
5import simpleRestProvider from 'ra-data-simple-rest';
6
7import { PostList } from './posts';
8
9const App = () => (
10 <Admin dataProvider={simpleRestProvider('http://path.to.my.api')}>
11 <Resource name="posts" list={PostList} />
12 </Admin>
13);
14
15export default App;
16