JSFiddle - React, Tailwind, and code Playground

by Ehsan Sajjad

HTML

<div class="my_account_container">
    <span class="my_account_title">Collections

    <div class="my_account_sub_container clickable" data-href="http://www.google.com">
        <span class="my_account_sub_container_title">My subscriptions</span>
    <div class="my_account_counts_container">
        <span class="my_account_counts_text">12</span>
    </div>

</div>

JavaScript

$(".clickable").click(function() {

   var href = $(this).data("href");
   window.location = href;

 });