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

react4j.ComponentConstructorFunction Maven / Gradle / Ivy

There is a newer version: 0.196
Show newest version
package react4j;

import jsinterop.annotations.JsFunction;
import jsinterop.base.JsPropertyMap;

/**
 * A function interface to create component instances.
 * This is typically implemented by the classed generated by the annotation processor and should
 * not be directly implemented.
 */
@FunctionalInterface
@JsFunction
public interface ComponentConstructorFunction
{
  /**
   * Construct a component based on specified properties.
   *
   * @param props the component props.
   * @return the component.
   */
  NativeComponent construct( JsPropertyMap props );
}