1.1.3 • Published 6 years ago
casino-royale-roulette v1.1.3
casino-royale-roulette
The Roulette component for the Casino Royale project.
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