npm.io
0.16.3 • Published 1 year ago

@not-govuk/app-composer

Licence
MIT
Version
0.16.3
Deps
2
Size
18 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

Not Govuk - App Composer

Composes isomorphic React applications from a set of components.

Using this package

First install the package into your project:

npm install -S @not-govuk/app-composer

Then use it in your client-side code as follows:

import { compose } from '@not-govuk/app-composer';

const MyApp = compose({
  AppWrap,
  ErrorPage,
  LoadingPage,
  PageWrap,
  pageLoader,
  browserRouterProps
});

And/or in your server-side code as follows:

import { compose } from '@not-govuk/app-composer';

const MyApp = compose({
  AppWrap,
  ErrorPage,
  PageWrap,
  staticRouterProps
});

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