Intermact API Reference / @intermact/react / useDeserializedProject
Function: useDeserializedProject()
useDeserializedProject(
input,options?):DeserializedProgram
Defined in: react/src/hooks/useDeserializedProject.ts:29
Deserialize a SerializedProject (or share-url string) into a playable DeserializedProgram (design.md §17). Memoized on the input + reduced -motion flag, so a new Player is built only when the project changes. Pass reducedMotion to mount the motion-free (end-state) variant.
Parameters
input
options?
UseDeserializedProjectOptions = {}
Returns
DeserializedProgram