DEV Community

Discussion on: You're a Dev > So Write Like One. Thoughts on writing long-form, not short.

Collapse
 
matthewpersico profile image
Matthew O. Persico

Agreed. The example should be:

Don’t: updateState()
Do: updateStateForServices()

and it should simply be assigned to the onClick callback of the UI.

Collapse
 
brad_beggs profile image
Brad Beggs

Yes. I updated the example. Thanks for helping clarify . :)