1.1.3 • Published 6 years ago

casino-royale-roulette v1.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

casino-royale-roulette

The Roulette component for the Casino Royale project.

NPM JavaScript Style Guide

Install

npm install --save casino-royale-roulette

Usage

import * as React from 'react'

import Roulette from 'casino-royale-roulette'

class Example extends React.Component {
  render () {
    const props = {
      player: {
        money: 1337,
        achievements: [{}],
      },
      update: (player) => { window.alert(`UPDATE :: €${player.money}`) },
      close: () => { window.alert('CLOSE') },
    }

    return (
      <div>
        <Roulette {...props} />
      </div>
    )
  }
}

License

MIT © dabrowski-adam

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago