Aller au contenu principal

Function: useLunatic()

useLunatic(source, data, argOptions): LunaticState

Defined in: src/use-lunatic/use-lunatic.ts:73

The first library entrypoint is the useLunatic hook.

Parameters

ParameterTypeDefault valueDescription
sourceLunaticSourceundefinedJSON representation of our survey unit in the Lunatic Model. https://github.com/InseeFr/Lunatic-Model
dataPartialDEFAULT_DATAInitial survey data (i.e. if it has been partially filled).
argOptionsLunaticOptionsemptySpecific behaviour options.

Returns

LunaticState