useState 中
const [BlogAddress] = useState("https://blog.csdn.net/HarryHY");
修改成下面的这种即可
const [Blog_Address] = useState("https://blog.csdn.net/HarryHY");
本文介绍在React中使用useState时,如何正确命名状态变量,通过一个简单的例子展示了从使用驼峰命名法到下划线命名法的转变。
useState 中
const [BlogAddress] = useState("https://blog.csdn.net/HarryHY");
修改成下面的这种即可
const [Blog_Address] = useState("https://blog.csdn.net/HarryHY");
2220

被折叠的 条评论
为什么被折叠?