React
class React
Contains functions that perform operations for React.js relate CLI commands.
Constants
| COMPONENT_PATH |
Path to React.js components. |
| PAGE_PATH |
Path to React.js pages. |
| UTILS_PATH |
Path to JavaScript utilities. |
Methods
Generates the auth jsx components.
Generates a component with default export.
Generates the error/NotFound.jsx component.
Generates the home/Index.jsx component.
Generates a named export component.
Generates component under 'resources/js/components'.
Generates a page view component under 'resources/js/pages/
Generates a JavaScript file under 'resources/js/utils' to be use as support file with React.js front-end.
Generates the profile jsx components.
Details
at line 33
static int
authComponents()
Generates the auth jsx components.
at line 48
static string
defaultComponentTemplate(string $componentName)
Generates a component with default export.
at line 68
static int
errorNotFoundComponent()
Generates the error/NotFound.jsx component.
at line 80
static int
homeComponent()
Generates the home/Index.jsx component.
at line 93
static string
namedComponentTemplate(string $componentName)
Generates a named export component.
at line 115
static int
makeComponent(string $componentName, bool $named = false)
Generates component under 'resources/js/components'.
at line 133
static int
makePage(string $filePath, string $pageName, bool $named = false)
Generates a page view component under 'resources/js/pages/
at line 148
static int
makeUtility(string $utilityName)
Generates a JavaScript file under 'resources/js/utils' to be use as support file with React.js front-end.
at line 159
static int
profileComponents()
Generates the profile jsx components.