Skip to main content
added 16 characters in body
Source Link
Harry
  • 225
  • 1
  • 3

It's worth mentioning that the "should""should" prefix can also be used. According to Apple's guideline, not just "can""can" and "should""should", modal verbs in general can be used to name functions that return boolean. I can't see muchmany use of "will""will" but "should""should" is nice for advice inquiring-inquiring hooks, as seen in reactjs:

shouldComponentUpdate: (newProps: any) => boolean 

It's worth mentioning that the "should" prefix can also be used. According to Apple's guideline, not just "can" and "should", modal verbs in general can be used to name functions that return boolean. I can't see much use of "will" but "should" is nice for advice inquiring hooks, as seen in reactjs:

shouldComponentUpdate: (newProps: any) => boolean 

It's worth mentioning that the "should" prefix can also be used. According to Apple's guideline, not just "can" and "should", modal verbs in general can be used to name functions that return boolean. I can't see many use of "will" but "should" is nice for advice-inquiring hooks, as seen in reactjs:

shouldComponentUpdate: (newProps: any) => boolean 
Source Link
Harry
  • 225
  • 1
  • 3

It's worth mentioning that the "should" prefix can also be used. According to Apple's guideline, not just "can" and "should", modal verbs in general can be used to name functions that return boolean. I can't see much use of "will" but "should" is nice for advice inquiring hooks, as seen in reactjs:

shouldComponentUpdate: (newProps: any) => boolean