@dxos/gem-core
v0.1.23
Published
Gem core components and utils.
Downloads
18
Keywords
Readme
GEM
- TODO(burdon): Why do we use
tsconfig.spec.json
.
export const Primary = () => {
const gridRef = useRef<SVGSVGElement>();
const handleResize = (({ width, height }) => {
d3.select(gridRef.current).call(grid({ width, height }));
});
return (
<div>
<SvgContainer onResize={handleResize}>
<g className='grid' ref={gridRef} />
</SvgContainer>
</div>
);
}