0

I'm doing the Admin-on-rest tutorial, I have done every thing, and now i need to change the json server from json placen holder to the json server (from json place holder).

I have created already the server, I only need to know how to connect the server to react.

I already tried this way:

const App = () => (
  <Admin restClient={jsonServerRestClient('http://localhost:5000/')}>
    <Resource name="posts" list={PostList} edit={PostEdit} create={PostCreate} remove={Delete} icon={PostIcon} />
  <Resource name="users" list={UserList} icon={UserIcon} />
 </Admin>
);

0 Answers0