JSFiddle - React, Tailwind, and code Playground

by steadily

JavaScript

{
  "quote": {
    "policy_type": "DP3",
    "policy_coverages": [
      {
        "name": "personal_liability",
        "config": [
          {
            "type": "limit",
            "value": "300000"
          }
        ]
      },
      {
        "name": "medical_payments",
        "config": [
          {
            "type": "selected",
            "value": "yes"
          },
          {
            "type": "limit_deductible",
            "value": "500/25000"
          }
        ]
      }
    ],
    "primary_insured": {
      "first_name": "None",
      "last_name": "None",
      "suffix": "SR",
      "email": "[email protected]",
      "date_of_birth": "2000-01-01",
      "phone_number": "5555555555",
      "mailing_address": {
        "street_address": "123 main st",
        "city": "PIMA",
        "state": "AZ",
        "zip_code": "85543",
        "county": "Graham"
      },
      "previous_address": {
        "street_address": "123 main st",
        "city": "LANCASTER",
        "state": "OH",
        "zip_code": "43130"
      }
    },
    "effective_date": "2022-06-24",
    "policy_details": {
      "occupancy": "rental",
      "similar_insurance_declined": "yes",
      "self_reported_claims": [
        {
          "date_of_loss": "2022-06-02",
          "loss_reason": "other",
          "loss_amount_dollars": 2000,
          "caused_by_catastrophe": "no"
        },
        {
          "date_of_loss": "2022-06-07",
          "loss_reason": "weather",
          "loss_amount_dollars": 1000,
          "caused_by_catastrophe": "no"
        }
      ]
    },
    "properties": [
      {
        "address": {
          "street_address": "123 main st",
          "city": "PIMA",
          "state": "AZ",
          "zip_code": "85543",
          "county": "Graham"
        }
      }
    ],
    "property_coverages": [
      {
        "name": "dwelling",
        "config": [
          {
            "type": "limit",
            "value": "400000"
          }
        ]
     ...