react-hooks
react-hooks copied to clipboard
New hook: pass replicant directly to hooks
const counterRep = nodecg.Replicant<number>('counter');
const Counter: React.FunctionComponent = () => {
const [count, updateCount] = useNewHookName(counterRep, null);
// ...
};