React
class React
Contains functions that perform operations for React.js relate CLI commands.
Constants
| COMPONENT_PATH |
Path to React.js components. |
| HOOKS_PATH |
Path to React.js hooks. |
| PAGE_PATH |
Path to React.js pages. |
| UTILS_PATH |
Path to JavaScript utilities. |
Methods
Generates the auth jsx components.
Generates the error/NotFound.jsx component.
Generates the home/Index.jsx component.
Generates component under 'resources/js/components'.
Generates a JavaScript file under 'resources/js/hook' to be use as hook file with React.js front-end.
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 38
static int
authComponents()
Generates the auth jsx components.
at line 52
static int
errorNotFoundComponent()
Generates the error/NotFound.jsx component.
at line 64
static int
homeComponent()
Generates the home/Index.jsx component.
at line 79
static int
makeComponent(string $componentName, bool $named = false)
Generates component under 'resources/js/components'.
at line 95
static int
makeHook(string $hookName)
Generates a JavaScript file under 'resources/js/hook' to be use as hook file with React.js front-end.
at line 111
static int
makePage(string $filePath, string $pageName, bool $named = false)
Generates a page view component under 'resources/js/pages/
at line 126
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 137
static int
profileComponents()
Generates the profile jsx components.