如何使用normalizr

时间:2018-12-30 04:00:32

标签: reactjs

如何使用normalizr标准化json数据

{
      order: {
        id: 10,
        line_items: [
          {
            id: 483,
            quantity: 2,
            product: {
              id: 924,
              name: "Carrots",
              price: "1.50"
            }
          }
        ]
      },
      products: [
        {
          id: 924,
          name: "Carrots",
          price: "1.50"
        },
        {
          id: 9274,
          name: "Car",
          price: "1.50"
        }
      ]
    };

0 个答案:

没有答案