Skip to main content
Glama
index.tsx.liquid1.2 kB
/** * {{ componentName }} Component (Smart/Container Component) * * DESIGN PATTERNS: * - Smart/Container Component: Handles business logic, state, and data fetching * - Delegates rendering to {{ componentName }}View (dumb/presentational component) * - Separation of Concerns: Logic in smart component, UI in view component * * CODING STANDARDS: * - Import and use the View component for rendering * - Handle state, effects, and callbacks here * - Pass data and handlers as props to the View * - Export component as default export * * USAGE: * - Import: import {{ componentName }} from '@/components/{{ componentName }}' * - This component manages logic and delegates UI to {{ componentName }}View */ import * as React from 'react'; import { {{ componentName }}View, type {{ componentName }}ViewProps } from './{{ componentName }}View'; type {{ componentName }}Props = {{ componentName }}ViewProps; export default function {{ componentName }}(props: {{ componentName }}Props) { // Add your state and logic here // Example: // const [state, setState] = React.useState(initialValue); // const handleAction = () => { ... }; return <{{ componentName }}View {...props} />; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgiFlow/aicode-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server