【发布时间】:2021-07-10 22:53:24
【问题描述】:
" Wrap getListViewSetting in a function for useState ",这是什么意思?
const [isListView, setIsListView] = useState(
getListViewSetting(location?.pathname?.replace('/', ''), true),
);
【问题讨论】:
-
这能回答你的问题吗? What is useState() in React?
标签: reactjs