@not-govuk/app-composer

Composes isomorphic React applications from a set of components.

Usage no npm install needed!

<script type="module">
  import notGovukAppComposer from 'https://cdn.skypack.dev/@not-govuk/app-composer';
</script>

README

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