Portals: A library for making XHR requests
A library for making XHR or AJAX requests with support for Promises and interceptor/middlware style behaviour to handle a variety of application requirements. The source code is available on Github and you can install it with npm
.
Can I use this with React?
Absolutely. That’s a large part of why I built it. I originally modeled it after Angular’s $http
module (thus, the support for interceptors). After my team moved to React, we couldn’t find a functional alternative (at the time) and we created Portals to meet our needs.