useStateuseState<T>(init?: () => T | Ref<T>): Ref<T>useState<T>(key: string, init?: () => T | Ref<T>): Ref<T>useState will be generated for you.Ref.useState will be serialized to JSON, it is important that it does not contain anything that cannot be serialized, such as classes, functions or symbols.