import React from 'react'; import { Switch, ConfigProvider, Space, Checkbox, Radio, Row, Col } from 'antd'; export default () => { const [checked, setChecked] = React.useState(false); React.useEffect(() => { const id = setInterval(() => { setChecked((prev) => !prev); }, 500); return () => { clearInterval(id); }; }, []); const nodes = ( Checkbox Radio ); return ( {nodes} {nodes} ); };