.claude/skills/modern-best-practice-react-components/SKILL.md
Build clean, modern React components that apply common best practices and avoid common pitfalls like unnecessary state management or useEffect usage
npx skillsauth add rdjakovic/todo2 modern-best-practice-react-componentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
We're using modern React (19+) and we're following common best practices focused on clarity, correctness, and maintainability.
function components over arrow functions
useEffect()
@tanstack/react-query)useState() or useReducer() usage
useMemo() sparingly and only for proven performance issuesAVOID in-line event handlers in JSX
PREFER:
function handleClick() {
// ...
}
<button onClick={handleClick} />;
Over:
<button
onClick={() => {
/* ... */
}}
/>
Name handlers clearly (handleSubmit, handleChange, handleClose)
Keep handlers small; extract complex logic into helpers
children intentionally and document expected structurememo, useCallback) unless absolutely requireddevelopment
Enforce web security and avoid security vulnerabilities
development
Guides users through distributing Tauri applications on Windows, including creating MSI and NSIS installers, customizing installer behavior, configuring WebView2 installation modes, and submitting apps to the Microsoft Store.
documentation
Guides users through Tauri window customization including custom titlebar implementation, transparent windows, window decorations, drag regions, window menus, submenus, and menu keyboard shortcuts for desktop applications.
tools
Assists users with updating Tauri dependencies including the Tauri CLI, Rust crates, JavaScript packages, and checking for outdated versions to upgrade to the latest version.