class ReactStubs

A collection of React.js view, component, and util stubs.

Methods

static string
authLogin()

Sub for auth/Login.jsx page component.

static string
authRegister()

Stub for auth/Register.jsx page component.

static string
authResetPassword()

Generates reset password view for auth controller.

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
homeIndex()

Stub for home/Index.jsx page component.

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.

static string
profileEdit()

Stub for profile/Edit.jsx page component.

static string
profileIndex()

Stub for profile/Index.jsx page component.

static string
profileUpdatePassword()

Stub for profile/UpdatePassword.jsx page component

Details

at line 14
static string authLogin()

Sub for auth/Login.jsx page component.

Return Value

string

The contents of the auth/Login.jsx page component.

at line 81
static string authRegister()

Stub for auth/Register.jsx page component.

Return Value

string

The contents of the auth/Register.jsx page component.

at line 178
static string authResetPassword()

Generates reset password view for auth controller.

Return Value

string

The contents for the JSX file.

at line 236
static string defaultComponentTemplate(string $componentName)

Generates a component with default export.

Parameters

string $componentName

The name of the component.

Return Value

string

The contents of the component.

at line 257
static string errorNotFound()

Stub for restoring required error/NotFound.jsx page component if accidentally deleted.

Return Value

string

Contents of the error/NotFound.jsx page component.

at line 276
static string homeIndex()

Stub for home/Index.jsx page component.

Return Value

string

The contents of the home/Index.jsx page component.

at line 357
static string hookTemplate(string $hookName)

Returns contents for a new hook file.

Parameters

string $hookName

The name of the hook.

Return Value

string

The contents of the new hook file.

at line 374
static string namedComponentTemplate(string $componentName)

Generates a named export component.

Parameters

string $componentName

The name of the component.

Return Value

string

The contents of the component.

at line 392
static string profileImageSorter()

Stub for ProfileImageSorter.jsx component.

Return Value

string

The contents of ProfileImageSorter.jsx file.

at line 546
static string profileEdit()

Stub for profile/Edit.jsx page component.

Return Value

string

The contents of the profile/Edit.jsx page component.

at line 630
static string profileIndex()

Stub for profile/Index.jsx page component.

Return Value

string

The contents of the profile/Index.jsx component.

at line 710
static string profileUpdatePassword()

Stub for profile/UpdatePassword.jsx page component

Return Value

string

The contents of the profile/UpdatePassword.jsx component.