React wrapper for NGL
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
react-ngl
is a React wrapper for NGL.
- ngl >= v2.0.0-dev.37
- node >= 12.16.0
- react ^16.13.1
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install react-ngl
- Clone the repo
git clone https://github.com/gky360/react-ngl.git
- Install NPM packages
npm install
A minimal example of using react-ngl
is as follows.
import React from 'react';
import { Stage, Component } from 'react-ngl';
ReactDOM.render(
<Stage width="600px" height="400px">
<Component path="rcsb://4hhb" reprList={reprList} />
</Stage>,
document.getElementById('app')
);
For more examples, please refer to the Demo
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/gky360/react-ngl