admin管理员组文章数量:1290393
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
- ponents
- 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?
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
- ponents
- 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?
Share Improve this question asked Sep 5, 2018 at 23:52 cooldude101cooldude101 1,4153 gold badges17 silver badges33 bronze badges1 Answer
Reset to default 6There are so many different ways to structure a React App that it all es down to what helps you, the developer, navigate your files more efficiently.
The 100% correct way to structure a React app (or why there’s no such thing)
If you just want to see some example file structures, you are wele to checkout many popular repos such as create-react-app or react-boilerplate.
本文标签: javascriptBest practices for folder structure for services in a react appStack Overflow
版权声明:本文标题:javascript - Best practices for folder structure for services in a react app? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741495738a2381828.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论