mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 20:38:45 +08:00
ac5a06027e
This reverts commit ea8ed28209
.
7 lines
161 B
TypeScript
7 lines
161 B
TypeScript
import * as React from 'react';
|
|
|
|
export default function useForceUpdate() {
|
|
const [, forceUpdate] = React.useReducer((x) => x + 1, 0);
|
|
return forceUpdate;
|
|
}
|