Object oriented programming Over functional programming?
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
I am Working on Admin Panel which has 30-40 Master table which contains CRUD functionality.
There are few masters which I need to call again and again in different masters. Eg we need to call country master in State & City inorder to add State and City because they both should in particular country. So the problem is I have to write or copy paste entire getCountry() Code in State & again in City. In OOPs we used to just create function at once then call it anywhere with single line of code.
But react that's not working as expected. So what's the best way to do that? Hope I am clear here.
Points / My concern
- There are lot of repetition for calling APIs.
- In oops we create function and just call that using single like and use it. But not in react we have to write setState logic and need to handle success, error logic everywhere again and again
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 未指定文件、测试或入口点;首先明确是否需要一个 React 文档页面,以及应涵盖哪种可复用的 API-fetching 模式。完成的标准是确定一致的范围,并完成一项文档变更,以解决所述的重复以及成功/错误处理问题。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 15/100