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

0.8.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @not-govuk/app-composer

Weekly Downloads

29

Version

0.8.6

License

MIT

Unpacked Size

19 kB

Total Files

6

Last publish

Collaborators

  • daniel-ac-martin