npm.io
3.17.5 • Published 2h ago

@dhis2/app-runtime

Licence
BSD-3-Clause
Version
3.17.5
Deps
7
Size
13 kB
Vulns
0
Weekly
0
Stars
16

DHIS2 Application Runtime

A singular runtime dependency for applications on the DHIS2 platform

Installation

yarn add @dhis2/app-runtime

NB Please ensure that all webpack bundles reference the same Context, you can do this by adding @dhis2/app-runtime to peerDependencies (rather than dependencies) and webpack externals for library builds. Top-level web applications should be able to include the dependency directly

This library uses the official React Context API (introduced in 16.3) and React Hooks (introduced in 16.8), so React >= 16.8 is required to use it

Required Polyfills

The following must be polyfilled to support older and non-compliant browsers (i.e. IE11):

Usage

See the docs for usage and examples