<commit_before># React Dice

Library for creating multisided dice and rolling them. Check out the demo [here](http://adam-tyler.com/react-dice-complete).

![sample dice roll](/img/diceRoll2.gif "Sample Dice Roll")

## Installation
```
npm install react-dice
```

## Dependencies
* [React](https://facebook.github.io/react/)

## Usage (ES6)
```
import React from 'react'
import ReactDice from 'react-dice-complete'
import 'react-dice-complete/dist/styles.css'

class App extends React.Component {

  render() {
    return (
      <div>
        <ReactDice
          numDice=2
          rollDone={this.rollDoneCallback}
          ref={dice => this.reactDice = dice}
        />
      </div>
    )
  }

  rollAll() {
    this.reactDice.rollAll()
  }

  rollDoneCallback(num) {
    console.log(`You rolled a ${num}`)
  }
)
```

## Usage ES5 (with bundling)
```
var React = require('react');
var ReactDice = require('react-dice');

<commit_msg>Readme tweaks<commit_after># React Dice

Library for creating multisided dice and rolling them. Check out the demo [here](http://adam-tyler.com/react-dice-complete).

![sample dice roll](/img/diceRoll2.gif "Sample Dice Roll")

## Installation
```
npm install react-dice
```

## Dependencies
* [React](https://facebook.github.io/react/)

## Usage (ES6)
```
import React from 'react'
import ReactDice from 'react-dice-complete'
import 'react-dice-complete/dist/react-dice-complete.css'

class App extends React.Component {

  render() {
    return (
      <div>
        <ReactDice
          numDice={2}
          rollDone={this.rollDoneCallback}
          ref={dice => this.reactDice = dice}
        />
      </div>
    )
  }

  rollAll() {
    this.reactDice.rollAll()
  }

  rollDoneCallback(num) {
    console.log(`You rolled a ${num}`)
  }
)
```

## Usage ES5 (with bundling)
```
var React = require('react');
var ReactDice = require('react-dice');


{'fraction_non_alphanumeric': 0.15352038115404976, 'fraction_numerical': 0.004235044997353097, 'mean_word_length': 3.108695652173913, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1932862', 'n_tokens_mistral': 664, 'n_tokens_neox': 640, 'n_words': 143}