You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document _ prefixed props (eg: _ItemSeparatorComponent) or change this #5
This is already addressed in BuckleScript documentation however, we might as well add a reference to that. The leading _ is ignored when an uppercase letter follows and I understand some of these props are supposed to begin with an uppercase letter. I don't understand the design decision that makes these props so particularly special that they could not have been in lowercase, but that's a different kettle of fish.
To be honest, coming from JavaScript nothing should be too weird 😁.
Activity
cknitt commentedon Aug 20, 2019
AFAIK the
_props are the only way this works with@bs.objand thereby@react.component-@bs.asis not supported here.sgny commentedon Aug 20, 2019
It appears we responded at the same time.
This is already addressed in BuckleScript documentation however, we might as well add a reference to that. The leading
_is ignored when an uppercase letter follows and I understand some of these props are supposed to begin with an uppercase letter. I don't understand the design decision that makes these props so particularly special that they could not have been in lowercase, but that's a different kettle of fish.To be honest, coming from JavaScript nothing should be too weird 😁.