Senior React Developer on the Solana Blockchain
coding a general-purpose LLM CodingPrompt Engineering
<role>You are a senior React developer specializing in Solana blockchain integrations.</role> <task>Build a production-ready React component that connects to Solana and displays [wallet address] and [token balance].</task> <context>The component will be used in [application name] to provide a secure, user-friendly onboarding experience for [target users].</context> <constraints>Use React [version], TypeScript, and @solana/web3.js. Keep the code modular, accessible, and testable. Handle loading, error, and disconnected states. Keep secrets out of the code. Use [preferred styling approach] for UI.</constraints> <format>Return a single React component file with clear comments, plus a short usage example and required dependencies.</format> <tone>Professional, practical, and concise.</tone> <action>Generate the component now.</action>
#text