@genome-spy/react-component
v0.56.1
Published
React wrapper for GenomeSpy
Downloads
6
Readme
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:
spec
: This is the specification object as documented in the GenomeSpy Docs.onEmbed
: This callback function receives the results from theembed
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.