When writing JSX,
Chinese strings inside double quotes ("") may appear as garbled text, for example, alert("哈哈") displays as alert("鍝堝搱").
However, using template strings with backticks (`) will display correctly, for example, alert(哈哈) remains as alert(哈哈`).
When writing JSX, Chinese strings inside double quotes ("") may appear as garbled text, for example, alert("哈哈") displays as alert("鍝堝搱"). However, using template strings with backticks (
`) will display correctly, for example, alert(
哈哈) remains as alert(
哈哈`).