函数式编程重构示例集

提供从命令式编程到函数式编程的重构示例,帮助开发者改进代码库或通过AI编码代理使用。

  • by tjercus
  • 本地部署
  • 更新于
在 GitHub 查看 tjercus/typescript-and-react-refactorings

使用说明

从命令式到函数式编程的重构示例集

用法

通过阅读和应用这些或 您可以通过将此仓库转换为MCP服务器来要求AI编码代理使用:

https://gitmcp.io/

索引

通用TypeScript

  • if-then.md
  • if-then-else.md
  • if-then-elsenested.md
  • 强制性意见
  • 大功能md

反应

  • react-usestate-null.md