↧
Answer by AKX for How to parse input xml data to json in react with xml2js?
Since parseString is an asynchronous API, you will need to call it in an useEffect hook with the input data set as a dependency to avoid it being re-re-re-re-...-called on each render.I also moved the...
View ArticleHow to parse input xml data to json in react with xml2js?
I am trying to parse the input xml data to json in react with the help of xml2js.import React, { useState } from "react";import xml2js from "xml2js";function Parser() { const [xmlData, setXmlData] =...
View Article