001package react4j.internal; 002 003import javax.annotation.Nonnull; 004import jsinterop.annotations.JsPackage; 005import jsinterop.annotations.JsType; 006import react4j.JsError; 007import react4j.ReactErrorInfo; 008 009/** 010 * Native support infrastructure for componentDidCatch react lifecycle. 011 */ 012@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "?" ) 013public interface OnComponentDidCatch 014{ 015 void componentDidCatch( @Nonnull JsError error, @Nonnull ReactErrorInfo info ); 016}