# 在 React hooks 中如何模拟 forceUpdate
Issue
欢迎在 Gtihub Issue 中回答此问题: Issue 616 (opens new window)
Author
const [ignored, forceUpdate] = useReducer((x) => x + 1, 0);
function handleClick() {
forceUpdate();
}
Issue
欢迎在 Gtihub Issue 中回答此问题: Issue 616 (opens new window)
Author
const [ignored, forceUpdate] = useReducer((x) => x + 1, 0);
function handleClick() {
forceUpdate();
}