Skip to content

nikolas/react-moonphase

Repository files navigation

react-moonphase Build Status Greenkeeper badge

Display lunar phase with React and Pixi.js

Screenshot of moon phase

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)} />
    );
}