Skip to content

Instantly share code, notes, and snippets.

@cyrilf
Created October 18, 2018 09:57
Show Gist options
  • Save cyrilf/64f2f271c7968a4090d143608bfd59d7 to your computer and use it in GitHub Desktop.
Save cyrilf/64f2f271c7968a4090d143608bfd59d7 to your computer and use it in GitHub Desktop.
React util function to find and replace string with links in a label
const flattenArray = (arr) => arr.reduce((result, value) => result.concat(value), [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment