React state shouldn\'t be mutated directly. But, what if the state is an instance of a class that shall be mutable with its own methods. Is there another way than having to deep