osh-react-page

openscihub.org: version of osh-page for React

Usage no npm install needed!

<script type="module">
  import oshReactPage from 'https://cdn.skypack.dev/osh-react-page';
</script>

README

React Page

A derivation of Page tailored to React.

Installation

npm install osh-react-page

Example

Documentation

Configuration

See the Page configuration documentation for background. Config properties that act differently in this version are described below.

Notably, the ui property is deprecated in this subclass. All progressive enhancement is handled for you by mounting the body, which should be a React component.

body (ReactComponent)

props

The props object in this case has an

Mixin