Hm, i'm using the JS sdk, what's a good way of org...
# general
a
Hm, i'm using the JS sdk, what's a good way of organizing code? I currently have 3 Cognito user pools in 3 seperate files, require'd into the index.js . - Is this a good pattern? I'm planning to have the index.js be kind of like a 'Table of Contents' and put resources in their own folders to be require'd into the index.js.
w
Yes - that’s generally a good way to organize. Splitting components or groups of related resources into serrated files/folders - and then using index.js in the root (or even in subfolders) to aggregate things together into the final application you want.
a
awesome thanks!