Choosing Chinese AI Coding Tools: A Reproducible React Evaluation

    A reproducible method for evaluating Chinese AI coding tools through a fixed React shopping site task. It covers the test setup, three-level success criteria, a five-dimension scoring table, typical tool behaviors, common code quality issues, a selection checklist, a reusable prompt template, and data compliance checks.

    1. Why a Reproducible Evaluation Method Is Needed

    Developers in China often face unstable network access, high barriers to subscription payment, and risks around data leaving the country. For enterprises, core code cannot leave the internal network, so “no extra network requirements and controllable data” is often a hard requirement.

    Demo pages in tool marketing usually cover a single page and rarely reflect a real project. This article fixes one test task, one scoring rubric, and one record template, so results from different tools can be compared and verified. The conclusions describe categories of behavior, not a ranking.

    2. Test Environment and Recording Standards

    Record the following information before running the test. Without these fields, others cannot verify the findings on time and completion.

    1. The tool name and version, plus the underlying model name and version.
    2. The operating system, Node.js version, and package manager (npm, pnpm, or yarn) with its version.
    3. The React and React Router versions, for example React 18 and React Router 6.
    4. The full prompt text, including the first input and every repair instruction.
    5. The start time, first runnable time, and end time, recorded to the second.
    6. The number of automatic or manual repair rounds, and a summary of the error messages in each round.

    3. Unified Test Task and Success Criteria

    The task is to build a ten-page front-end shopping site from scratch using React. The pages are: the home page (product list), the product detail page, the purchase page, the purchase success page, the user login page, the user registration page, and, under the user center, the dashboard, the orders page, the coupon wallet, and the settings page.

    The main difficulty is site-wide consistency. More than a dozen routes must share a design language, state management, and navigation structure. Forms need basic validation, and the login state must carry through the full flow, from browsing products to seeing the purchase success page. Many tools produce good results on a single page, but consistency across the whole site often breaks down. This task therefore tests a tool’s global planning ability.

    Success is judged at three levels:

    • Level 1: The project starts with no compile errors.
    • Level 2: The core shopping flow works. A user can go from the home page to the detail page, add a product to the purchase flow, log in, complete the purchase, and see the success page.
    • Level 3: All ten pages are accessible, and navigation and login state stay consistent across them.

    4. Evaluation Dimensions and Scoring Table

    Each of the five dimensions is scored from 0 to 5. Each score comes with a one-sentence note of evidence.

    Table 1. Scoring rubric

    Dimension Criteria What to record
    Task completion Which success level each tool passes, and how many pages it covers Level passed, page count, missing pages
    Code quality Directory layering, separation of data and views, dead code Directory tree screenshot or key file paths
    Interaction experience Whether task guidance is clear and error messages are understandable Steps taken and where the process stalls
    Response speed Time for the first generation and for each repair round Seconds, with the network environment noted
    Maintainability Number of files that must change to connect a real API Estimated list of files to change

    Record failure logs alongside the scores. Examples include the original build error text, the file path where the error occurred, and the result after the fix. A note such as “many build errors” does not let others judge how serious the problem is.

    5. Typical Behavior of Three Tool Types

    The test showed three types of tool behavior. To avoid tying the conclusions to specific products, the types are described by category below.

    Type 1: Plan once, generate in batch. The tool first produces an overall page plan and technical design, then generates the code in one pass. These tools usually get the core shopping flow running quickly, cover the pages fairly completely, and include basic form validation. They show three common problems. First, the interface leans toward mobile styling, and some pages, such as login and registration, have layout distortions. Second, the product detail page carries little information, and most images are placeholders. Third, mobile adaptation needs extra prompt constraints.

    Type 2: Multi-stage build. Planning is more detailed, and form validation and detail page content are usually more complete. However, after the first generation, the project often has runtime errors, and several repair rounds are needed before the full result appears. Styling problems are also noticeable. For example, light backgrounds with white text make buttons invisible, and colors clash. Later revisions take considerable effort.

    Type 3: Multi-agent role division. The tool offers different roles, such as rapid build and architecture design. The rapid build role starts quickly, but the project structure is sometimes messy. One example is nested directories with the same name, which prevents the project from starting. The architecture role can produce a runnable project, but it reports many errors, and automatic repair across several rounds has limited effect. For this test task, choosing a role adds decision cost on its own.

    These descriptions reflect typical behavior within each category. The test did not fix complete version numbers or timings, so the results cannot be used directly to rank the tools.

    6. Code Quality and Common Issues

    Code from all three types is generally readable. Styles and logic are usually separated, and the component division is reasonable. However, three shared problems appear.

    First, the architecture is simple and lacks engineering layers. A maintainable React project can follow this directory structure:

    1. src/
    2. components/
    3. hooks/
    4. pages/
    5. services/
    6. mock/

    Second, mock data is written directly inside components. Code like this needs extensive refactoring when real APIs are connected.

    1. // Anti-pattern: mock data hardcoded inside the component
    2. function ProductList() {
    3. const products = [{ id: 1, name: '无线耳机', price: 199 }];
    4. return products.map((p) => <div key={p.id}>{p.name}</div>);
    5. }

    A better approach is to place the data in src/mock and provide it through the services layer. The pages then only render.

    Third, some projects include hooks or context files with empty contents. This structure is layered in form only and does nothing. During review, open these files to confirm that they contain logic.

    7. Selection Checklist

    Check the following items before choosing a tool:

    1. Is the goal a prototype or a production project? Prototypes can prioritize how fast the tool generates the project and how complete the first output is. Production projects should prioritize code layering and maintainability.
    2. Does the generated code separate data from views?
    3. Do routing and state management have clear places in the code?
    4. Can you specify the stack versions, directory conventions, and mobile requirements in the prompt?
    5. Is there a privacy mode, and what are the retention rules for conversations and code?
    6. Are free quotas, concurrency limits, and upgrade prices clearly stated?
    7. Does the tool suit team use? Team scenarios need a separate evaluation of permission management and concurrency quotas.
    8. Is multi-agent role division needed? If the task does not require it, a single-agent workflow is easier to review.

    For cost assessment, run the tool on a real project for one week. Record the token consumption of each task, track how often free quotas run out, and estimate the monthly cost at your team’s size.

    8. Prompt Template

    Constraints in the prompt can significantly reduce rework. The template below can be reused directly. Adjust the version numbers and directory requirements to fit each project.

    1. Use React 18 with React Router. Organize the code in layers: components, hooks, pages, and services. Place mock data under src/mock. All pages must support responsive layouts for widths of 375px and above. Forms must include required-field validation and error messages. The login state must stay valid throughout the shopping flow.

    A prompt should include three types of information: the stack versions, the directory conventions, and the acceptance criteria. The more specific the acceptance criteria, the easier it is for the tool to determine whether the task is complete.

    9. Compliance and Data Boundaries

    Data compliance cannot rely only on a vendor’s marketing claims. Complete the following checks before launch:

    1. Confirm where the data servers are located and whether data crosses borders.
    2. Review the privacy policy for rules on retaining conversations, code snippets, and logs, and confirm whether the data is used for model training.
    3. For code on the internal network, prefer solutions that support private deployment or local models.
    4. Enable privacy mode, and use anonymized sample data during testing.
    5. Check the tool’s outbound domains in your network policy, and confirm that no unexpected data is uploaded.

    Enterprises should have their security or legal staff review the terms and keep a record of that review.

    10. Conclusion

    Chinese AI coding tools can now build a complete site from scratch, and progress is visible in page coverage and flow completeness. Differences remain clear in architectural depth, visual detail, and automatic repair capability.

    A reproducible evaluation process is more useful than comparing a single tool. Tools keep changing. A shared task, a scoring table, and prompt standards form a method that can be reused over time.