LLM-Generated Frontend Projects: What Works and Where They Fail

    This article reports a real-world test of LLM-based frontend project generation on a React stack. Using a complete product requirements document, it examines basic pages, complex lists with filtering, and forms with validation, then compares the results with a closed-source benchmark model. It outlines where generated projects are usable, where they fall short, and what teams should check before adopting them.

    LLM code generation has moved from completing a single line to generating an entire project. Teams care about two things: whether the generated project is usable, and where it cannot be trusted. This article is based on a real frontend project generation test. It discusses the capability boundaries of LLMs in engineering-oriented code generation and does not recommend any specific product.

    How the Test Was Conducted

    The test input was a complete product requirements document, and the target project used a React stack. The test covered three typical scenarios: basic pages, complex lists and filtering, and forms and validation. The model delivered a structurally complete project that could run locally or in the cloud. This shows a baseline ability in scaffolding and module integration.

    During the test, the model queued requests because of concurrency limits, and total generation time exceeded half an hour. This number reflects only the conditions of this test. Results may differ with a different time window or deployment method. Teams that want to reproduce the test should first record the model version, the size of the requirements document, the runtime environment, and how elapsed time is measured.

    Basic Pages: Usable as a First Draft

    Take the login page as an example. The requirements included conventional form input and a carousel display. The model understood these requirements accurately and generated the corresponding page structure, styles, and state control logic. The page was basically complete, with no obvious missing components or style issues.

    Running does not mean production-ready. The generated code is suitable as a prototype or a first draft of a basic page. Before merging, it still requires human review, regression testing, and security checks. The most common mistake teams make at this stage is merging generated output directly into the main branch.

    Complex Lists: Filter Options Are Easily Missed

    The list page requirements defined multiple filter conditions and the interaction rules between them. The generated page structure was correct, but key filter options were almost entirely unimplemented. The page looked complete, but a piece of actual functionality was missing.

    The reason is that when processing a long requirements document, the model tends to apply a generic CRUD template and treats conditional branches and state linkage as secondary content. These problems do not appear as errors. They must be verified item by item against the requirements. A recommended approach is to split each filter option into an independent acceptance criterion and check its input, output, and linkage results one by one.

    Forms: Field Dependencies and Validation Rules Degrade

    The form requirements included dependencies between fields, fine-grained validation rules, and interaction details such as asynchronous validation and debouncing. The generated form could run, but many field logic and validation rules were not implemented according to the document. The model preferred generic form templates and did not capture less common business constraints in the document.

    When validating forms, teams can first list a field dependency table, then write positive and negative cases for each validation rule. This takes considerable effort, but it exposes problems early.

    Comparison with a Benchmark Model

    The same requirements document was also given to an industry closed-source benchmark model. On basic pages, the two had similar completion levels. On complex lists and forms, the benchmark model restored field structures and filtering logic more accurately and handled dependencies between forms better. It was also clearly faster.

    Therefore, the open-source model in this test is better positioned as engineering-usable, but it still has a gap before it can produce complex requirements in one shot. The gap mainly appears in instruction-following precision, complex logic reasoning, and long-context understanding.

    Pre-Deployment Checklist

    When teams prepare to introduce LLMs into the R&D process, they can start with the following points:

    1. Private deployment: When business data and internal APIs are involved, prioritize running the model on the enterprise intranet and clarify the scope of data storage and access.
    2. Code copyright: Confirm whether the model’s open-source license permits commercial use, and check whether generated code contains identifiable third-party snippets.
    3. Human review: All generated code should go through code review, with emphasis on business logic and boundary conditions.
    4. Regression testing: Use automated tests to cover key flows, especially filtering, validation, and state switching.
    5. Security checks: Focus on input validation, access control, and whether sensitive information is written into frontend code.

    LLMs are suitable for project initialization, basic page setup, and generic component generation. Core business logic and complex state management still need to be reviewed by engineers.

    FAQ

    How should LLM frontend engineering be evaluated?

    Use the same requirements document and check page structure, feature completion, validation rules, and elapsed time. Evaluation should score each feature point individually, not just whether the overall project runs.

    What should teams watch for in a generated frontend project?

    Pay attention to missing functionality, validation rules that do not match the requirements, unreviewed third-party code, and sensitive information exposed in the frontend. Human review and regression testing should be completed before merging.

    What are the risks of using open-source LLMs in an enterprise?

    The main risks include data leakage, license restrictions, unstable generated code quality, and service interruption caused by reliance on a single model. Countermeasures include private deployment, reviewing license terms, establishing a code review process, and keeping replaceable fallback options.