React Best Practices

🌐Community
by onekeyhq · vlatest · Repository

Helps with React, best practices as part of building frontend UIs and user experiences workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add onekeyhq-react-best-practices npx -- -y @trustedskills/onekeyhq-react-best-practices
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "onekeyhq-react-best-practices": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/onekeyhq-react-best-practices"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The onekeyhq-react-best-practices skill provides a curated set of guidelines and patterns for building robust React applications within the OneKeyHQ ecosystem. It ensures code consistency, performance optimization, and maintainability by enforcing specific architectural standards across your frontend projects.

When to use it

  • Establishing a standardized coding style for new team members joining an existing OneKeyHQ project.
  • Refactoring legacy React components to align with current best practices and reduce technical debt.
  • Ensuring consistent behavior and UI rendering across multiple microservices in a monorepo setup.
  • Preparing codebases for production deployment by addressing common performance bottlenecks early.

Key capabilities

  • Enforces strict linting rules tailored to OneKeyHQ's specific React implementation requirements.
  • Provides reusable component patterns that prevent common state management anti-patterns.
  • Guides the integration of hooks and context APIs to ensure predictable data flow.
  • Offers configuration presets for bundlers like Webpack or Vite optimized for this stack.

Example prompts

  • "Refactor this legacy class component into a functional component using modern React hooks."
  • "Generate a reusable DataTable component following OneKeyHQ's design system and performance guidelines."
  • "Audit my current project structure against the recommended monorepo best practices for React apps."

Tips & gotchas

This skill is specifically designed for the OneKeyHQ stack; applying these patterns to unrelated React frameworks may introduce unnecessary complexity. Ensure your development environment matches the required Node.js version specified in the OneKeyHQ documentation before installing to avoid compatibility issues with build tools.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
onekeyhq
Installs
69

🌐 Community

Passed automated security scans.