Typedef
| Static Public Summary | ||
| public |
Roc builder object. |
|
| public |
Roc client options. |
|
| public |
Roc server options. |
|
Static Public
public rocClientOptions: Object source
Roc client options.
Used in createClient.
For example of createRoutes see createRoutes.
For example of createStore createReduxStore. *
Properties:
| Name | Type | Attribute | Description |
| createRoutes | function |
|
A function that will return a valid route object, is given the store instance in the case that there is on that can be used. |
| createStore | function |
|
A function that return a Redux store instance. The interface for it is:
|
| mountNode | string |
|
The id for the DOM node to mount the React application inside of. |
public rocServerOptions: Object source
Roc server options.
Used in useReact.
For example of createRoutes see createRoutes.
For example of createStore createReduxStore.
The stats property can also be set in roc.config.js however the value here will override it if provided.
Properties:
| Name | Type | Attribute | Description |
| createRoutes | function |
|
A function that will return a valid route object, is given the store instance in the case that there is on that can be used. |
| createStore | function |
|
A function that return a Redux store instance. The interface for it is:
|
| stats | string |
|
A path to a stats JSON file. Should match the following pattern
|