Let\'s say I have a function that returns an id (integer) that increments every time.
let nextId = 0; const getId = () => nextId++; export default getId