1.1.3 • Published 5 years ago

casino-royale-roulette v1.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 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

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago