Through
Last updated
Last updated
Render Props based component to receive data in the though-container. It pass props received from the through-agent to a function. The Function as Child Compnent (FaCC) approach is used.
Props from selected agent or whole area if bearingKey (or direct) prop is not specified.
area
: String: The name of the area see
bearingKey
: String|undefined: define which agent data is selected, or whole area data if undefined
direct
: String|bool|undefined: same as bearingKey
but also boolean
is allowed and true
is replaced with default
for
default
|defaultValue
: any: default value passed to the render function if no such agent exists or in initial rendering
children
: function(props|area: Object): props from agent selected by bearingKey
or direct
or whole area if not specified
Let Agent
is declared and two instanece of it are rendered some where in react tree like this: