mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
7 lines
159 B
TypeScript
7 lines
159 B
TypeScript
import * as React from 'react';
|
|
|
|
export default function useForceUpdate() {
|
|
const [, forceUpdate] = React.useReducer(x => x + 1, 0);
|
|
return forceUpdate;
|
|
}
|