MCPcopy Create free account
hub / github.com/streamich/react-use / setUp

Function setUp

tests/useSet.test.ts:4–4  ·  view source on GitHub ↗
(initialSet?: Set<K>)

Source from the content-addressed store, hash-verified

2import useSet from '../src/useSet';
3
4const setUp = <K>(initialSet?: Set<K>) => renderHook(() => useSet(initialSet));
5
6it('should init set and utils', () => {
7 const { result } = setUp(new Set([1, 2]));

Callers 1

useSet.test.tsFile · 0.70

Calls 1

useSetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…