Package react4j

Class React

java.lang.Object
react4j.React

@JsType(isNative=true, namespace="<global>", name="React") public final class React extends Object
Native interface to native runtime for creating views.
  • Method Details

    • enableViewNames

      @JsOverlay public static boolean enableViewNames()
      Return true if views should have human readable names specified. Useful if you want to interact via DevTools or other tool chains.
      Returns:
      true to enable human readable names for views.
    • shouldMinimizeInputKeys

      @JsOverlay public static boolean shouldMinimizeInputKeys()
      Return true if the input keys should be minimized. This will significantly reduce the size of the compiled output but will make inspecting the inputs in DevTools difficult if not impossible.
      Returns:
      true to minimize input keys.
    • shouldValidateInputValues

      @JsOverlay public static boolean shouldValidateInputValues()
      Return true if the input value should be validated when initially set or when changed.
      Returns:
      true to validate input values.
    • shouldStoreDebugDataAsState

      @JsOverlay public static boolean shouldStoreDebugDataAsState()
      Return true if react state should be used to store debug data. Useful if you want to inspect the debug data via DevTools. This feature is resource intensive and should not be enabled in production.
      Returns:
      true if react state should be used to store debug data.
    • shouldCheckInvariants

      @JsOverlay public static boolean shouldCheckInvariants()
      Return true if invariants will be checked.
      Returns:
      true if invariants will be checked.