Slide 81
Slide 81 text
In the "/source/utils/_ajax.js" file,
we have a wrapper around
window.fetch — which is the
new HTML5 replacement for the
quirkiness of XMLHttpRequest.
You can specify a host, url,
method, params — sent as query
or body based on method — and
callbacks for success/error.
This file is not presently used in
the React starter project, but we
do make use of it in real projects
that require us to do Ajax.