createGate(config?: {defaultState?, domain?, name?})#
Creates a Gate, if defaultState is defined, Gate.state will be created with passed value
Arguments
config (Object): Optional configuration object
defaultState?: Optional default state for Gate.statedomain?(Domain): Optional domain which will be used to create gate units (Gate.open event, Gate.state store and so on)name?(string): Optional name which will be used as name of created react component
Returns
createGate(name?)#
Creates a Gate
Arguments
name? (string): Optional name which will be used as name of created react component
Returns