$state() can be used to define reactive class instance variables. This is generally very useful, though when writing a getter for public variables, there's a call ...