0.56.1 • Published 11 months ago

@genome-spy/react-component v0.56.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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.

0.56.1

11 months ago

0.55.0

11 months ago

0.56.0

11 months ago

0.54.0

11 months ago

0.53.1

1 year ago

0.53.0

1 year ago