- Add following syntax to html file
<!DOCTYPE html>
<head>
</head>
<body>
<h1>Counting Value that you want to increase</h1>
<h2 data-target="1200" speed="500" class="count">100</h2>
</body>
</html>
data-target need how much we should increase speed need what is the counting speed
- Script file should be like
import { countValue } from "increment-counter";