remote-data
This is an abstraction over remote data that needs to be fetched from backend. It based on "Slaying UI Antipattern In X" article
Install
yarn add @dmitry.olyenyov/remote-data
Usage
let data = initialized();
data = success("server response");
data = failure(someError);
License
MIT © Dema