Define a module
To define a module, use the defineModule
api with the initial state value. You can extend a module's ability by invoking their builder methods.
Make sure to call the build
methods in the end, to turn the module factory into a real module.
Basic
Module Factory
Each steps of building will produce a new factory. With the pure functional design, all steps is resuable and composable.
Last updated