Skip to main content

react-best-practices

React performance and correctness rules tuned for silkdown — a CodeMirror 6 wrapper library, not a Next.js app. Auto-trigger when editing the React adapter (packages/react/src/SilkdownEditor.tsx, packages/react/src/index.ts), reviewing or refactoring any React component or hook in this repo, optimizing bundle budgets in size-limit, debugging unnecessary re-renders or stale closures around the EditorView, or adding lazy-loaded widgets (math/mermaid/table). Also fires on: "React perf", "useEffect", "memoization", "stale ref", "stale closure", "rerender", "useMemo", "useCallback", "forwardRef", "imperative handle", "bundle size", "tree-shaking", "barrel imports", "React.lazy", "controlled vs uncontrolled".

跳到安装

来源信息

仓库
magarcia/silkdown
最近来源活动
2026年5月5日 23:23
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。