R.App Class
Simply create an App class with specifics
Provides methods in order to render the specified App server-side and client-side
- App.createApp => initializes methods of an application according to the specifications provided
- App.renderToStringInServer => compute all React Components with data and render the corresponding HTML for the requesting client
- App.renderIntoDocumentInClient => compute all React Components client-side and establishes a connection via socket in order to make data subscriptions
- App.createPlugin => initiliaziation method of a plugin for the application
Item Index
Methods
createApp
-
specs
Initializes the application according to the specifications provided
Parameters:
-
specs
ObjectAll the specifications of the App
Returns:
AppInstance The instance of the created App
createPlugin
-
specs
Initiliaziation method of a plugin for the application
Parameters:
-
specs
ObjectThe specified specs provided by the plugin
Returns:
PluginInstance The instance of the created plugin
renderIntoDocumentInClient
-
window
Setting all the data for each React Component and Render it into the client.
Connecting to the uplink-server via in order to enable the establishment of subsriptions for each React Component
Parameters:
-
window
ObjectThe classical window object
renderToStringInServer
-
req
Compute all React Components with data server-side and render the corresponding HTML for the requesting client
Parameters:
-
req
ObjectThe classical request object
Returns:
template : the computed HTML template with data for the requesting client