Function atom

Source
pub fn atom<T: 'static, F: Fn() + 'static, U, A>(
    current_id: StorageKey,
    data_fn: F,
) -> ReactiveStateAccess<T, U, IsAnAtomState>