Skip to content

Instantly share code, notes, and snippets.

@andeplane
Created March 27, 2021 10:32
Show Gist options
  • Save andeplane/cd0e80b49a635ed20ed1f18fc0878371 to your computer and use it in GitHub Desktop.
Save andeplane/cd0e80b49a635ed20ed1f18fc0878371 to your computer and use it in GitHub Desktop.
const createCode = (particles: Particles) {
// code that takes particles and creates bonds
}
return (
<Visualizer>
<Particles src="https://online.no/simulation.xyz">
<Bonds createCode={createCode} />
</Particles>
</Visualizer>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment