mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 07:39:10 +08:00
6aaa7be029
* fix: SSR not break Grid * test: Add hydrate test * fix lint
12 lines
282 B
TypeScript
12 lines
282 B
TypeScript
import * as React from 'react';
|
|
import { detectFlexGapSupported } from '../../_util/styleChecker';
|
|
|
|
export default () => {
|
|
const [flexible, setFlexible] = React.useState(false);
|
|
React.useEffect(() => {
|
|
setFlexible(detectFlexGapSupported());
|
|
}, []);
|
|
|
|
return flexible;
|
|
};
|