JSFiddle - React, Tailwind, and code Playground

by evgkch

JavaScript

export default function getData() {
    return {
        main: {
            partId: 'MAX232N',
            manuf: 'Texas Instruments',
            descr: 'Line Transmitter/Receiver 2TR 2 Transceiver 2 Receiver 16-Pin SOIC Tube',
            img: 'http://sg.element14.com/productimages/standard/en_GB/1470445-40.jpg'
        },
        description: [
            ['Mounting Type', 'Surface Mount'], ['REACH SVHC Compliance', 'No SVHC'], ['Supply Voltage (DC)', '4.5 V (min)'], ['Lead-Free Status', 'Lead Free'], ['Case / Package / Footprint', 'SOIC'], ['Drivers Per Package', '2'], ['Supply Current', '8 mA'], ['Data Rate', '120 kbps'], ['Number of Pins', '16'], ['Packaging', 'Tube'], ['Lifecycle Status', 'Active'], ['RoHS', 'Compliant']
        ],
        data: [
            {
                id: 0,
                dstr: 'Digi-Key',
                part: 'MAX232',
                stock: 4753,
                moq: 1,
                curr: 'USD',
                prices: [[1, 1.19], [10, 1.06], [100, 0.828], [500, 0.684], [1000, 0.54], [2500, 0.504], [5000, 0.479], [10000, 0.461]]
            }, {
                id: 1,
                dstr: 'Avnet',
                part: 'MAX232',
                stock: 8176,
                moq: 1,
                curr: 'USD',
                prices: [[1, 0.735], [10, 0.65], [25, 0.543], [50, 0.542], [100, 0.508], [500, 0.477], [1000, 0.464]]
            }, {
                id: 2,
                dstr: 'Verical',
                part: 'MAX232D',
                stock: 385,
                moq: 49,
                curr: 'USD',
                prices: [[49, 0.524], [98, 0.477]]
            }, {
                id: 3,
                dstr: 'Arrow',
                part: 'MAX232D',
                stock: 665,
                moq: 1,
                curr: 'USD',
                prices: [[1, 0.609], [10, 0.568], [100, 0.506]]
            }, {
                id: 4,
                dstr: 'Rochester',
                part: 'MAX232N',
          ...