<div id="vk_groups"></div>
<script type="text/javascript">
VK.Widgets.Group("vk_groups", {mode: 0, width: "220", height: "400"}, 1);
</script>
import {VK} from "vk"
const Component = () => {
const vkRef = useRef(null);
useEffect(() => {
if (vkRef.current) {
VK.Widgets.Group(vkRef.current, {mode: 0, width: "220", height: "400"}, 1);
}
}, [vkRef])
return <div ref={vkRef}></div>
}