react-moonphase
v1.1.1
Published
Display lunar phase with React and Pixi.js
Downloads
12
Readme
react-moonphase
Display lunar phase with React and Pixi.js
Demo
https://nikolas.github.io/react-moonphase/
Usage
npm install --save react-moonphase
import MoonPhaseView from 'react-moonphase';
// ...
render() {
return (
<MoonPhaseView
moonPhase={this.state.moonPhase}
onMoonPhaseUpdate={this.onMoonPhaseUpdate.bind(this)} />
);
}