npm run build Bundles the app into static files for production.
npm test Starts the test runner.
npm run eject Removes this tool and copies build dependencies, configuration files and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd test-admin npm start
与API建立连接
vi src/App.js
1 2 3 4 5 6 7 8 9 10
// in src/App.js import * as React from"react"; import { Admin } from'react-admin'; import jsonServerProvider from'ra-data-json-server';