Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents frontend patterns for React and Next.js, covering component composition, state management, and performance optimization.
96% 100%+4 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 22 of 23 without it.
3 of 3 safety checks passed
Not used yet
用於 React、Next.js 和高效能使用者介面的現代前端模式。
// ✅ 良好:元件組合
interface CardProps {
children: React.ReactNode
variant?: 'default' | 'outlined'
}
export function Card({ children, variant = 'default' }: CardProps) {
return <div className={`card card-${variant}`}>{children}</div>
}
export function CardHeader({ children }: { children: React.ReactNode }) {
return <div className="card-header">{children}</div>
}
export function CardBody({ children }: { children: React.ReactNode }) {
return <div className="card-body">{children}</div>
}
// 使用方式
<Card>
<CardHeader>標題</CardHeader>
<CardBody>內容</CardBody>
</Card>
interface TabsContextValue {
activeTab: string
setActiveTab: (tab: string) => void
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.