Class ReactUtils

java.lang.Object
com.vaadin.client.ReactUtils

public final class ReactUtils extends Object
Utils class, intended to ease working with React component related code on the client side.
Since:
24.5.
Author:
Vaadin Ltd
  • Constructor Details

    • ReactUtils

      public ReactUtils()
  • Method Details

    • addReadyCallback

      public static void addReadyCallback(elemental.dom.Element element, String name, Runnable runnable)
      Add a callback to the react component that is called when the component initialization is ready for binding flow.
      Parameters:
      element - react component element
      name - name of container to bind to
      runnable - callback function runnable
    • isInitialized

      public static boolean isInitialized(Supplier<elemental.dom.Element> elementLookup)
      Check if the react element is initialized and functional.
      Parameters:
      elementLookup - react element lookup supplier
      Returns:
      true if Flow binding can already be done