You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.frontend.

Class TaskGenerateReactFiles

java.lang.Object
com.vaadin.flow.server.frontend.AbstractFileGeneratorFallibleCommand
com.vaadin.flow.server.frontend.TaskGenerateReactFiles

All Implemented Interfaces:

FallibleCommand

public class TaskGenerateReactFiles extends AbstractFileGeneratorFallibleCommand

Generate default files for react-router if missing from the frontend folder.

The generated files are Flow.tsx and routes.tsx. Where Flow.tsx is for communication between the Flow and the router and contains the server side route target serverSideRoutes to be used in routes.tsx.

Flow.tsx is always written and thus updates automatically if there are changes.

For internal use only. May be renamed or removed in a future release.

Since:

3.0