Short form matrix view of all GO annotations for a given gene
This REACT version of the ribbon has been deprecated. Users should now use or migrate to the Web Component version of the GO ribbon, richer in functionalities, and easier to install:
https://github.com/geneontology/wc-ribbon/tree/master/wc-go-ribbon
npm install
in the components's root directory will install everything you need for development.
npm install
npm run build
npm start
will run a local server with the ribbon's demo app at http://localhost:3000 with hot module reloading.Integration is demonstrated in the demo package.
import React from 'react';
import ReactDOM from 'react-dom';
...
ReactDOM.render(<Demo/>, document.getElementById('demo'));
With the Demo Component instantiating all of the lower components.
If not running react directly (or not wanting to load it via npm), you can import the libraries directly :
<script src="https://unpkg.com/react@15.6.1/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@15.6.1/dist/react-dom.js"></script>
Which will allow you to do as above.
fly
zebrafish
npm run build
will prepare the assets of the library for publishing to NPM.