react-hooks icon indicating copy to clipboard operation
react-hooks copied to clipboard

New hook: pass replicant directly to hooks

Open Hoishin opened this issue 5 years ago • 0 comments

const counterRep = nodecg.Replicant<number>('counter');

const Counter: React.FunctionComponent = () => {
	const [count, updateCount] = useNewHookName(counterRep, null);

	// ...
};

Hoishin avatar Apr 29 '19 22:04 Hoishin