tinystate
tinystate copied to clipboard
Named setState() calls
Could be useful for Redux Devtools / debugging:
setState({stateFn: (s) => ({count: s.count + 1}), action: 'incrementCount'});
Could be useful for Redux Devtools / debugging:
setState({stateFn: (s) => ({count: s.count + 1}), action: 'incrementCount'});