ReactStubs
class ReactStubs
A collection of React.js view, component, and util stubs.
Methods
static string
defaultComponentTemplate(string $componentName)
Generates a component with default export.
static string
errorNotFound()
Stub for restoring required error/NotFound.jsx page component if accidentally deleted.
static string
hookTemplate(string $hookName)
Returns contents for a new hook file.
static string
namedComponentTemplate(string $componentName)
Generates a named export component.
static string
profileImageSorter()
Stub for ProfileImageSorter.jsx component.
Details
at line 15
static string
defaultComponentTemplate(string $componentName)
Generates a component with default export.
at line 36
static string
errorNotFound()
Stub for restoring required error/NotFound.jsx page component if accidentally deleted.
at line 56
static string
hookTemplate(string $hookName)
Returns contents for a new hook file.
at line 73
static string
namedComponentTemplate(string $componentName)
Generates a named export component.
at line 91
static string
profileImageSorter()
Stub for ProfileImageSorter.jsx component.