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.