JSFiddle - React, Tailwind, and code Playground

by stofke

HTML

<div class="accordion"><ol>
    <li>
        <h2>
            <span>Bestsellers</span>
        </h2>
        <div class="links" id="bestsellers">
            
        </div>
    </li>
    </ol>
</div>

JavaScript

var shopsheep = function() {
    var json = {
        "com": {
            "bestsellers": {
                "categories": {
                    "digital-video": "Amazon Instant Video",
                    "appliances": "Appliances",
                    "mobile-apps": "Appstore for Android",
                    "arts-crafts": "Arts, Crafts &amp; Sewing",
                    "automotive": "Automotive",
                    "baby-products": "Baby",
                    "beauty": "Beauty",
                    "books": "Books",
                    "photo": "Camera &amp; Photo",
                    "wireless": "Cell Phones &amp; Service",
                    "apparel": "Clothing",
                    "pc": "Computers &amp; Accessories",
                    "electronics": "Electronics",
                    "grocery": "Grocery &amp; Gourmet Food",
                    "hpc": "Health &amp; Personal Care",
                    "home-garden": "Home &amp; Garden",
                    "hi": "Home Improvement",
                    "industrial": "Industrial &amp; Scientific",
                    "jewelry": "Jewelry",
                    "digital-text": "Kindle Store",
                    "kitchen": "Kitchen &amp; Dining",
                    "magazines": "Magazines",
                    "dvd": "Movies &amp; TV",
                    "music": "Music",
                    "musical-instruments": "Musical Instruments",
                    "office-products": "Office Products",
                    "garden": "Patio, Lawn &amp; Garden",
                    "shoes": "Shoes",
                    "software": "Software",
                    "sporting-goods": "Sports &amp; Outdoors",
                    "toys-and-games": "Toys &amp; Games",
                    "video": "Video",
                    "videogames": "Video Games",
                    "watches": "Watches"
                },
                "urlpart": "/rss/bestsellers/",
                "country": "com",
                "title":...