This allows terms of type ReactThis props state, ReactClass props, Ref a, RefHandler a and SyntheticEvent_ event to be coerced to type ReactThis props' state', ReactClass props', Ref b, RefHandler b and SyntheticEvent_ event' when Coercible props props', Coercible state state', Coercible a b and Coercible event event' hold, hence allowing the zero cost coerce to introduce and eliminate newtypes in components props and state, refs and their handlers and synthetic events for instance.
This allows terms of type
ReactThis props state
,ReactClass props
,Ref a
,RefHandler a
andSyntheticEvent_ event
to be coerced to typeReactThis props' state'
,ReactClass props'
,Ref b
,RefHandler b
andSyntheticEvent_ event'
whenCoercible props props'
,Coercible state state'
,Coercible a b
andCoercible event event'
hold, hence allowing the zero costcoerce
to introduce and eliminate newtypes in components props and state, refs and their handlers and synthetic events for instance.