Closed yarnball closed 7 years ago
Replace this import with your favorite XHR request library, for example xhr
:
-import request from './fakeRequest';
+import request from 'xhr';
Change the request.post
calls in that file to use your real URL:
-request.post('/login')
+request.post('myserver.com/login')
Hi,
I may have missed this- seems a basic question. I would like to use this with an actual server. So how would i change the it so it passes the username/password to a URL instead? Thanks