redux) Redux is a state container that integrates well with React
For the most part, Virtool client source code is organized by feature. Most feature folders will have the following files or directories:
All components associated with the feature. May contain additional nested directories. |
Reducers and possibly some initial state values or helper functions.
Selector functions for deriving values from the state object.
Redux action creators for the feature. |
Functions for making and handling requests to the Virtool JSON API. Uses
superagent as HTTP client library.
Saga code for the feature. Contains watch setup for handling actions (eg.
watchSamples) and defines generator functions for handling asynchronous activity. Most of the saga code is for dealing with API requests.
Miscellaneous utility functions for the feature.
Contains submodules related to app initializiation and whole-application functionality.
Common base components for reuse in user interface.
Webpack entry point.
__webpack_nonce__ value based on a value passed in from the server via
Contains reusable utility functions for the following: