@JsType(isNative=true,
namespace="<global>",
name="Object")
public class Context<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Context.ConsumerBuilder<ST>
A Builder for the Consumer component.
|
static interface |
Context.ConsumerRenderFunction<T>
Interface used to type the render function prop.
|
static class |
Context.ProviderBuilder<ST>
A Builder for the Provider component.
|
| Constructor and Description |
|---|
Context() |
| Modifier and Type | Method and Description |
|---|---|
Context.ConsumerBuilder<T> |
consumer()
Create a builder for the Consumer component.
|
Context.ProviderBuilder<T> |
provider()
Create a builder for the Provider component.
|
@JsOverlay @Nonnull public final Context.ProviderBuilder<T> provider()
@JsOverlay @Nonnull public final Context.ConsumerBuilder<T> consumer()