useLink
Creates a reactive Link which allows for performant dynamic animations based on the Link's value.
Importing
1
import { useLink } from '@infinityfx/lively/hooks';
Usage
Call signature
1
const link = useLink<T = any>(initial)
Parameters
initial:
any
The initial value of the returned Link.
Returns
link:
Link<any>
A link which can be used inside the animate property to create an animation.