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.
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.