This is a prerelease version of FAST (3.0.0-rc.1).

@microsoft/fast-element > reactive

reactive() function

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Converts a plain object to a reactive, observable object.

Signature:

export declare function reactive<T>(object: T, deep?: boolean): T;

Parameters

Parameter

Type

Description

object

T

The object to make reactive.

deep

boolean

(Optional) Indicates whether or not to deeply convert the oject.

Returns:

T

The converted object.