2.0.0 • Published 5 years ago

@injectable/react-service v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

React Service

Service for compiling a react component to a web page.
Uses server side rendering via the Server Side Rendering Service.

This is an templete for developing an Injectable for the Injectable Core.

Functions

Registers an id for a page.

public registerPageId(): number

Sets a react page to compile and host on the route.

public setPage<T>(
    injectableName: string,
    pageId: number,
    compileableComponent: Compileable<FunctionComponent<T>>,
    onFileRequest: OnRequest,
    onPageRequest: OnPageRequest<T>,
    baseRoute: string,
    encodings: Array<Encoding>
): void

Deletes a page with all its resources.

public deletePage(injectableName: string, pageId: number): void

License

See the LICENSE file for license rights and limitations (MIT).