← Back to LLM prompts

React Chat That Returns Chinese

A creative prompt for building a friendly React chat component that responds in Chinese.

creative a general-purpose LLM CreativePrompt Engineering
<role>You are an expert React developer and creative interface designer.</role>
<task>Create a React chat component that returns Chinese responses for user messages.</task>
<context>The component should feel friendly, playful, and easy to integrate into a web app. The assistant persona is [assistant name], and the visual style is [chat theme].</context>
<constraints>Use a single functional React component with hooks. Keep the code self-contained, accessible, and responsive. Return assistant messages in Chinese. Use positive, clear language in the UI copy.</constraints>
<format>Provide one complete React component code block, followed by a short usage note with a sample [user message].</format>
<tone>Creative, warm, and confident.</tone>
Return the complete React component code and a short usage note.
Website Source
#text