Skip to content

Instantly share code, notes, and snippets.

@akopcz2
Last active October 14, 2019 18:00
Show Gist options
  • Save akopcz2/a7dcb44e2f45f28860b75f011b4e6b7b to your computer and use it in GitHub Desktop.
Save akopcz2/a7dcb44e2f45f28860b75f011b4e6b7b to your computer and use it in GitHub Desktop.
switch (a) {
case a:
return <Component1 />
case b:
return <Component2 />
case …z
return <Components 3–26 /> etc…
default;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment