Function: SigmaContainer()
SigmaContainer<
N,E,G>(props):ReactElement
Defined in: packages/core/src/components/SigmaContainer.tsx:157
The SigmaContainer component is responsible of create the Sigma instance, and provide it to its child components using a React Context that can be accessible via the hook useSigma.
<SigmaContainer id="sigma-graph">
<MyCustomGraph />
</SigmaContainer>
See SigmaContainerProps for the component's properties.
Type Parameters
• N extends Attributes = Attributes
• E extends Attributes = Attributes
• G extends Attributes = Attributes
Parameters
props
SigmaContainerProps<N, E, G> & object & RefAttributes<null | Sigma<N, E, G>>
Returns
ReactElement