Properly build memoized index.js