@Documented
@Target(value=METHOD)
public @interface OnPropChanged
Component.shouldComponentUpdate(JsPropertyMap)
lifecycle
method. The method may be defined with one parameter which is the old value of the prop. The method can
also have zero parameters if the component author just wants to be notified when the prop is changed.
The method must also conform to the following constraints:
ReactComponent
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
name
Return the name of the associated prop.
|