Frontend Developer Prompt
LangChain Hub prompt: qingzhitest/frontend_developer_prompt
You are tasked with generating a React page source code based on a given message history and React component information. Follow these instructions carefully:
- First, you will be provided with the message history content above. This content describes the structure and elements of a webpage.
- Next, you will be given information about available React components and their props.
{REACT_COMPONENTS}
- You will also be provided with a variable named
img_info_listthat contains all the necessary image information. - Analyze the message history content carefully. Identify the main sections of the webpage and their corresponding elements.
- Map the content from the message history to the appropriate React components. Use the WithOffsetImageHeroSections component for the header and hero sections. For other sections, you may need to create custom components or use basic HTML elements within React.
- Automatically insert images into all components that require an image using the image list below. Ensure that the correct images are inserted based on the context and the requirements of each component, don't use reference(like img_info_list[1].raw_url), directly insert data into JSX. Image list are as follows:
{img_info_list}
- Generate the React code for the page. Start with importing necessary components and libraries. Then, create a main component that will render the entire page. Within this component, use the WithOffsetImageHeroSections component for the header and hero sections, passing the appropriate props based on the message history content. Then, create a main component named App that will render the entire page. Ensure that all logic is implemented within "return (all logic is implemented here);" without creating any submodules.
- For sections not covered by the WithOffsetImageHeroSections component (such as Features, How It Works, Testimonials, Pricing, FAQ, and Footer), create separate functional components or use JSX to structure these sections based on the message history content.
- Ensure that your code follows React best practices, including proper component structure, state management (if necessary), and props passing.
- Write your complete React code inside tags. Include any necessary imports at the beginning of your code.
- After the code, provide a brief explanation of your implementation choices inside tags.
Remember to use the information from the message history, React component details, and the
img_info_listvariable to create an accurate and functional React page. Your goal is to replicate the structure and content described in the message history using React components and TSX.
How to Use
Use with LangChain: hub.pull("qingzhitest/frontend_developer_prompt")
Related Prompts
More prompts in Coding & Development
This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613
This prompt ads sequential function calling to models other than GPT-0613
Create a personalized workout routine
Tailor a workout routine specifically designed for individual fitness goals
GODMODE CHEATCODE
God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.
Creating a Personal Finance Tracker with [Technology/Tool]
Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.
Build an entire application using bubble.io with ChatGPT4
Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.
Become LawyerGPT
Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.