Skip to content

Instantly share code, notes, and snippets.

@timlrx
Created April 22, 2021 08:51
Show Gist options
  • Save timlrx/969fdeb1f91b7daf31c918bab509fcc2 to your computer and use it in GitHub Desktop.
Save timlrx/969fdeb1f91b7daf31c918bab509fcc2 to your computer and use it in GitHub Desktop.
Neo4j Motif Pseudocode
const [driver, setDriver] = useState();
return (
<ProgressStepper currentStep={currentStep}>
{currentStep === 1 && (
<ConnectDatabase
driver={driver}
setDriver={setDriver}
nextStep={nextStep}
/>
)}
{currentStep === 2 && (
<ExecuteQuery
driver={driver}
nextStep={nextStep}
states={executeQuery}
onStateChange={onExecuteQueryChange}
/>
)}
</ProgressStepper>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment