Skip to content

Instantly share code, notes, and snippets.

@cbrannen9a
Created November 8, 2018 11:14
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cbrannen9a/2978ec8670dab5ac15afbd93c14fd432 to your computer and use it in GitHub Desktop.
function getStepContent(step) {
switch (step) {
case 0:
return <AddressForm />;
case 1:
return <PaymentForm />;
case 2:
return <Review />;
default:
throw new Error('Unknown step');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment