API Docs for: 0.2.2
Show:

R.App Class

Defined in: src\R.App.js:8

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

Methods

createApp

(
  • specs
)
AppInstance

Defined in src\R.App.js:20

Initializes the application according to the specifications provided

Parameters:

  • specs Object

    All the specifications of the App

Returns:

AppInstance:

AppInstance The instance of the created App

createPlugin

(
  • specs
)
Object

Defined in src\R.App.js:186

Initiliaziation method of a plugin for the application

Parameters:

  • specs Object

    The specified specs provided by the plugin

Returns:

Object:

PluginInstance The instance of the created plugin

renderIntoDocumentInClient

(
  • window
)

Defined in src\R.App.js:131

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 Object

    The classical window object

renderToStringInServer

(
  • req
)
Object

Defined in src\R.App.js:64

Compute all React Components with data server-side and render the corresponding HTML for the requesting client

Parameters:

  • req Object

    The classical request object

Returns:

Object:

template : the computed HTML template with data for the requesting client