1.0.1 • Published 5 months ago

react-molviewer v1.0.1

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

react-molviewer

npm version Downloads

A React application for displaying molecules using JSmol.

screen

How to run

With Yarn

  • install dependencies
yarn install
  • build
yarn build

Run in development mode

yarn start

default port is 8080

Demo: show the molecule

How to use react-molviewer in your application

  • import the component
  import { MolViewer } from 'react-molviewer';
  • render the component with props
  <MolViewer ... />

Props

NameTypeDescriptionRequired
molContentblobthe content of the moleculeyes
viewTypestringthe identifier type of the view, it is a string starts with 'mol', e.g. 'mol_caffeine'yes
fnInitfunctionis used to notify the parent component that the viewer has started loading the moleculeno
fnCbfunctionis used to notify the parent component that the viewer has completed loading the moleculeno

Contact Us

If you have any questions or suggestions, please contact the contributors:

0.0.7-rc.8

5 months ago

1.0.1

5 months ago

0.0.7-rc.7

5 months ago

1.0.0

5 months ago

0.0.7-rc.4

5 months ago

0.0.7-rc.3

5 months ago

0.0.7-rc.6

5 months ago

0.0.7-rc.5

5 months ago

0.0.7-rc.2

5 months ago

0.0.7-rc.1

5 months ago

0.0.6-rc.1

5 months ago

0.0.6-rc.4

5 months ago

0.0.6-rc.5

5 months ago

1.0.1-rc.1

5 months ago

0.0.6-rc.2

5 months ago

0.0.6-rc.3

5 months ago

0.0.6-rc.6

5 months ago

0.0.6

5 months ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago