type
// Action const action = { type: 'INCREMENT', payload: 1 }; // Action creator const increment = (value) => ({ type: 'INCREMENT', payload: value });
Generating explanation with Claude AI...
This will use 10 credits