Package react4j
Class Context.ConsumerBuilder<ST>
java.lang.Object
react4j.Context.ConsumerBuilder<ST>
A Builder for the Consumer component.
A Consumer component is a react component that subscribes to context changes.
-
Method Summary
Modifier and TypeMethodDescriptionSpecify the key for component if required.render
(Context.ConsumerRenderFunction<ST> render) Specify the child render function.
-
Method Details
-
key
Specify the key for component if required.- Parameters:
key
- the key for the component.- Returns:
- the builder.
-
render
Specify the child render function.- Parameters:
render
- the child render function.- Returns:
- the creates react node.
-