@not-govuk/client-renderer
TypeScript icon, indicating that this package has built-in type declarations

0.16.2 • Public • Published

Not Govuk - Client Renderer

A client-side renderer of React applications served via the server-renderer.

Using this package

First install the package into your project:

npm install -S @not-govuk/client-renderer

Then use it in your code as follows:

import { hydrateOrRender } from '@not-govuk/client-renderer';
import { AppWrap } from '../common/app-wrap';
import { PageWrap } from '../common/page-wrap';
import { ErrorPage } from '../common/error-page';
import { LoadingPage } from '../common/loading-page';
import { pageLoader } from '../common/page-loader';

hydrateOrRender(AppWrap, PageWrap, ErrorPage, LoadingPage, pageLoader);

Working on this package

Before working on this package you must install its dependencies using the following command:

pnpm install

Building

npm run build

Clean-up

npm run clean

Readme

Keywords

none

Package Sidebar

Install

npm i @not-govuk/client-renderer

Weekly Downloads

1,073

Version

0.16.2

License

MIT

Unpacked Size

8.96 kB

Total Files

6

Last publish

Collaborators

  • daniel-ac-martin