我在呈现响应中的标签时遇到了麻烦,而不是将其呈现为文本而不是HTML
ternet currency making mobile payment easy, very low transaction fees, protects your identity, and it works anywhere all the time with no central authority and banks. Bitcoin is designed to have only 21 million BTC ever created, thus making it a deflationary currency. Bitcoin uses the <a href="https://www.coingecko.com/en?hashing_algorithm=SHA-256">SHA-256</a> hashing algorithm with an average transaction confirmation time of 10 minutes. Miners today are mining Bitcoin using ASIC chip dedicated to only mining Bitcoin, and the hash rate has shot up to peta hashes. Being the first successful online cryptography currency, Bitcoin has inspired other alternative currencies such as <a href="https://www.coingecko.com/en/coins/litecoin">Litecoin</a>, <a href="https://www.coingecko.com/en/coins/peercoin">Peercoin</a>, <a href="https://www.coingecko.com/en/coins/primecoin">Primecoin</a>
这是一个来自API响应的代码片段
我目前使用html-react-parser
。一旦它被安装并导入到您的应用程序,它是一个简单的插入parse(myDataVariable)
到您的jsx。请查看文档。这是一个非常简单的设置。
https://www.npmjs.com/package/html-react-parser