@genome-spy/react-component
TypeScript icon, indicating that this package has built-in type declarations

0.56.1 • Public • Published

Genome Spy React Component

This package exports a <GenomeSpy /> React component that makes GenomeSpy's functionality available in React applications.

It is just a simple wrapper around the core library's embed function, but it is provided to React developers as the canonical way to integrate GenomeSpy into a React application.

Usage

The component takes two props:

  1. spec: This is the specification object as documented in the GenomeSpy Docs.
  2. onEmbed: This callback function receives the results from the embed function as an argument. In other words, this gives you access to the JavaScript API

For a practical example, check the React component example in the embed-examples package.

Readme

Keywords

none

Package Sidebar

Install

npm i @genome-spy/react-component

Weekly Downloads

0

Version

0.56.1

License

MIT

Unpacked Size

5.93 kB

Total Files

6

Last publish

Collaborators

  • klavikka