Interface Renderable

All Known Subinterfaces:
Buildable, ReactNode
All Known Implementing Classes:
Context.ProviderBuilder, ReactElement, ReactPortal

@JsType(isNative=true, name="?", namespace="<global>") public interface Renderable
A native node or a builder ready to produce one.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static @Nullable ReactNode
    toReactNode(@Nullable Renderable value)
    Build the supplied value, or return an existing node unchanged.
    static @Nullable ReactNode @Nullable []
    toReactNodes(@Nullable Renderable @Nullable [] values)
    Materialize builder entries without changing the supplied array.
  • Method Details

    • toReactNode

      @JsOverlay @Contract("null -> null; !null -> !null") static @Nullable ReactNode toReactNode(@Nullable Renderable value)
      Build the supplied value, or return an existing node unchanged.
    • toReactNodes

      @JsOverlay @Contract("null -> null; !null -> !null") static @Nullable ReactNode @Nullable [] toReactNodes(@Nullable Renderable @Nullable [] values)
      Materialize builder entries without changing the supplied array.