We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.frontend.
Package com.vaadin.flow.server.frontend
Class TaskGenerateReactFiles
java.lang.Object
com.vaadin.flow.server.frontend.TaskGenerateReactFiles
All Implemented Interfaces:
Generate default files for react-router if missing from the frontend folder.
The generated files are
App.tsx
, 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
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Runs the given command.
protected String
getFileContent
(String fileName)
-
Field Details
-
NO_IMPORT
-
-
Method Details
-
execute
Description copied from interface:
FallibleCommand
Runs the given command.
If execution fails then the command may throw an exception which may give a message and a cause of the failure.
Specified by:
execute
in interfaceFallibleCommand
Throws:
ExecutionFailedException
- if there is an execution error -
getFileContent
Throws:
-