Created with CodeSandbox
- First create a
div
with a specific class name inside your HTML. - The widget will be mounted on this
div
- Create a new instance of the
Stars
class with the name of the class and number of stars passed in as parameters as follows:
const stars1 = new Stars(".stars-container1", 5);