Rule of thumb: if a method in a React class doesn’t reference this
(or only references one or two values on this
), extract it out into a standalone util and pass those values in as params.
Rule of thumb: if a method in a React class doesn’t reference this
(or only references one or two values on this
), extract it out into a standalone util and pass those values in as params.