The usage section of the docs explores the intended use of Refract, focusing on each concept or feature in isolation.
If you are unfamiliar with reactive programming, we recommend reading Andre Staltz's article The introduction to Reactive Programming you've been missing before reading these docs. Reactive programming is central to Refract, so some understanding of the paradigm will be essential.
Before we begin, below is a quick explanation of some new terms associated with Refract which we will use throughout the documentation.
Each will be more thoroughly explored through examples, but starting with a rough approximation in mind will help.
aperturecontrols the streams of data which enter Refract.
It is a function which observes data sources within your app, passes this data through any necessary logic flows, and outputs a stream of
effectvalues in response.
handleris a function which causes side-effects in response to any
effectvalue output by the
errorHandleris a function which causes side-effects in response to any
errorvalue output by the