casino-royale-roulette
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i casino-royale-roulette

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

91.8 kB

Total Files

14

Last publish

Collaborators

  • adamdabrowski