Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

Here we focus on how we are going move away from the static data to network data

5 files modified

npm install axios

Keep the endpoints in a separate file so we don’t have any machine numbers in the code

endpoints.js

const   JSON_SERVER = 'http://localhost:3000';
export const   EP_SALES    = '/sale';


export const   REMOTE_HOST = JSON_SERVER;

SalesHistory.jsx

  • No labels