All Downloads are FREE. Search and download functionalities are using the official Maven repository.

react4j.core.BaseState Maven / Gradle / Ivy

There is a newer version: 0.02
Show newest version
package react4j.core;

import elemental2.core.JsObject;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
import jsinterop.base.JsPropertyMap;

/**
 * Base class for state field.
 */
@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
public class BaseState
{
  @JsOverlay
  public final  T dup()
  {
    return Js.uncheckedCast( JsObject.assign( Js.uncheckedCast( JsPropertyMap.of() ),
                                              Js.uncheckedCast( JsPropertyMap.of( this ) ) ) );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy