Skip to main content
Glama
Component.tsx803 B
// TSX test file import React, { FC, useState } from 'react'; interface Props { title: string; initialCount?: number; } const TypedCounter: FC<Props> = ({ title, initialCount = 0 }) => { const [count, setCount] = useState<number>(initialCount); const increment = (): void => { setCount(prev => prev + 1); }; return ( <div> <h1>{title}</h1> <p>Count: {count}</p> <button onClick={increment}>+</button> </div> ); }; interface User { id: number; name: string; } function UserList({ users }: { users: User[] }) { return ( <ul> {users.map(user => ( <li key={user.id}>{user.name}</li> ))} </ul> ); } export { TypedCounter, UserList };

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/FarhanAliRaza/claude-context-local'

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