Here is the code snippet I am trying to understand.
import { increment } from '../features/counter/counterSlice'
const object = {
[increment]: () => {}
}
console.log(object)
// logs { "counter/increment": Function}
Specifically what does the following syntax do?
[increment]: () => {}
Increment is a reducer function created by createSlice().