Build a dice roller app that simulates the results of rolling a specified number of 6-sided dice.
The example below shows a potential result of rolling 6 dice.

This question is adapted from FrontendEval's Rolling Dice question.
The solution can be broken down into a few parts:
The only state value we need for this dice roller is the values of the rolled dice, which can be represented as an array of values that range from 1 to 6.
Since the transfer of data from the form is one-directional, a basic HTML form will suffice.
By using <input type="number" required="true" min="1" max="12" />, we ensure only integer values can be entered and leverage HTML validation so that the minimum value of the fields is 1 and maximum is 12. Empty fields are also prevented via the required attribute.