Nick Gard
1 min readOct 9, 2018

--

Yes, that pattern will work too. I don’t like creating a new object just to associate a function with some data it needs, though. I only included the section on static class properties because that is a typical pattern in React applications and I wanted to emphasize that creating unchanging variables in the class constructor or within the class methods is a poor decision.

--

--

Nick Gard
Nick Gard

Written by Nick Gard

Web Developer, Oregonian, husband

Responses (1)