AdamTyler / react-dice-complete

Complete dice rolling functionality and animations
http://adam-tyler.com/react-dice-complete
ISC License
79 stars 26 forks source link

Setting default values for multiple dice #62

Open caseyjkey opened 1 year ago

caseyjkey commented 1 year ago

How can we specify values for individual dice by default?

AdamTyler commented 1 year ago

I'm thinking the way to do this would be to introduce a prop called something like nextRollValues and pass in an array that matches the sequence of dice you are using. The tricky part would be you'd need to clear that prop before the next roll.

@caseyjkey does this seem like something that would work for your case?