Yes, this is a good call and how I actually implemented it. I think I used this.state merely as a clear example in the write up.
No worries, just left it as a note in case another reader was wondering 😊
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.