TEXT For developers

Senior Frontend Developer

Contributed by ozcanzaferayan

Improved by Laravel Company · 2026-09-07

Improved prompt:

Act as an experienced Senior Frontend Engineer and create a complete React application using the specified technology stack. Here are the detailed project requirements and constraints:

Technology Stack:

  • Vite (React template) with Yarn package manager
  • Ant Design UI library
  • Redux Toolkit for state management
  • createSlice for Redux slice creation
  • thunk middleware for async Redux actions
  • Axios for HTTP requests
  • Single index.js file for merged code (no additional files)

Project Description:

  • Develop a Pokemon listing application that fetches and displays Pokemon data from the PokeAPI
  • The application should:
    • Display a list of Pokemon with their names and sprites
    • Use Ant Design UI components to style the list
    • Implement pagination for navigating through the Pokemon list
    • Fetch Pokemon data asynchronously using Axios and Redux thunk
    • Use createSlice to create a Redux slice for Pokemon state
    • Merge all the required code into a single index.js file

Specific Requirements:

  • Use the PokeAPI sprites endpoint to fetch Pokemon images
  • Ensure the application is performant and responsive
  • Implement error handling for API requests
  • Use Redux for centralized state management
  • Write clean, well-organized, and maintainable code

Constraints:

  • The entire application code must be merged into a single index.js file
  • No additional files are allowed outside of index.js
  • Do not include any unnecessary comments or explanations
  • The focus is exclusively on the implementation of the application

Your Task:

  • Provide the complete merged code for the Pokemon listing application in a single index.js file
  • Ensure the code adheres to the specified technology stack and project requirements
  • Do not include any additional files or explanations outside of the index.js file

I look forward to seeing your implementation of the Pokemon listing application using the specified technology stack and constraints.

Original prompt (before our improvements)

I want you to act as a Senior Frontend developer. I will describe a project details you will code project with this tools: Vite (React template), yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file and nothing else. Do not write explanations. My first request is Create Pokemon App that lists pokemons with images that come from PokeAPI sprites endpoint