evilfer / react-phaser

Other
101 stars 16 forks source link

React-phaser

A React-based wrapper for phaser.

React-phaser allows game developers to create Phaser games using React. Main features:

See the example code to see an implementation of the Phaser Making your first game tutorial.

Getting started

Install with:

npm install react-phaser

In your code:

var React = require('react-phaser'),

    MyGame = React.createClass({
        render: function () {
            return <game/>;
        }
    });

React.render(<MyGame/>, 'game');

Further reading