Best practices for folder structure for services in a react app?

Viewed 11026

A react app has the following services (and maybe more will be added):

  • ipfs
  • web torrents
  • web3
  • indexDb

I'm not even sure those would qualify as "services" but I don't know what else to call them.

Current folder structure is:

  • src
    • components
    • containers
    • css
    • reducers
    • settings
    • util
    • services
      • web3
      • ipfs
      • torrent
      • indexDb
      • api (this is the public api for all the services)

Does this follow best practices?

1 Answers
Related