构造函数被称为两次React?

时间:2020-06-15 11:44:20

标签: reactjs react-router

构造函数在React组件中被调用两次。

当我刷新链接=> http://localhost:3000/chat-room/foo/bar时 在我的构造函数中,控制台日志语句被记录两次。 我不知道为什么?



ChatBox.js

outfile = 'CNR_FCS_MAY_T_2020_FX.csv'

df.to_csv(outfile)
print("query export ran")

0 个答案:

没有答案