Última atividade 1728989289

Revisão 9b106ba3448567b52dc05766e7588998930fb6eb

React-admin-readme-2.jsx Bruto
1// in app.js
2import * as React from "react";
3import { render } from 'react-dom';
4import { Admin, Resource } from 'react-admin';
5import restProvider from 'ra-data-simple-rest';
6
7import { PostList, PostEdit, PostCreate, PostIcon } from './posts';
8
9render(
10 <Admin dataProvider={restProvider('http://localhost:3000')}>
11 <Resource name="posts" list={PostList} edit={PostEdit} create={PostCreate} icon={PostIcon} />
12 </Admin>,
13 document.getElementById('root')
14);