@iRaYzEn
Posted
hey man i am doing the same project now and i found out that the API is broken because for some words like right there are no phonetic for it there are an array of phonetics you can test your program by typing the word right and find that the phonetic is not working the way i fixed it is like this :
<p >{data?.phonetic || data?.phonetics.map((pho, i) => i == 1 && pho.text)}</p> if there is a phonetic so that's it but if there are phonetics array so : there are 3 arrays in the phonetics array so i picked the array number 1 :)